Amazon Interview Question

Write a small function to determine whether two words are anagrams