Citi interview question

Algorithmic task was for anagram detection