Honey Well interview question

Write program to check anagram.