Avaya interview question

Write code for String Anagram.