Domanda di colloquio di Walmart

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