Citi Interview Question

Algorithmic task was for anagram detection