Yahoo interview question

write codes to get if a string is an anagram