知恵を絞る

Etymology
Compound of 🇰🇲, literally "to strangle one's knowledge"

Idiom

 * 1)  to rack one's brain, to think really hard