绞尽脑汁

cudgel one's brains for, rack one's brains

jiǎo jìn nǎo zhī ㄐㄧㄠˇ ㄐㄧㄣˋ ㄣㄠˇ ㄓㄧ