Question d’entretien chez Apple

whats array and array list solve anagram problme