Chewy interview question

Implement array flat method. check if words are anagrams