kùn​xīn​héng​lǜ

to rack one's brains