Pregunta de entrevista de BankBazaar

how to find whether the elements in an array are anagrams to each other