romperse la cabeza
Meanings
Verb
1. to rack one's brain (idiomatic)