Citi interview question

What is anagram and explain its logic