Walmart interview question

How would you implement determining if an input is an anagram?