Question d’entretien chez Yelp

Code a function to detect anagrams in an array.