Microsoft Interview Question

checking if word is anagram or not