脳みそを絞る (のうみそをしぼる) — to rack one's brains | Kumi Dictionary