绞尽脑汁

jiǎo jìn nǎo zhī

to rack one's brains

jiǎo

to twist (strands into a thread)

jìn

to use up

nǎo

brain

zhī

juice