Apple Interview Question

whats array and array list solve anagram problme