FIS interview question

Asked me to write a program on anagrams