絞盡腦汁

Idiom

 * 1) to rack one's brain