Toptal Interview Question

Write a function to determine if a word is anagram or not