Wiktionary
scratch one's head
vb. (context idiomatic English) To puzzle, ponder, or wonder about something.