idiom
rack your brains
Meaning
to think very hard about something
Example
I had to **rack my brains** to remember her name.