Apple interview question

whats array and array list solve anagram problme