Idiom meaning

hi,
what is the meaning of "to rack one's brains" as an idiom

Replies