zachodzić w głowę

Verb

 * 1)  to rack one's brain, to scratch one's head