Citi Interview Question

What is anagram and explain its logic