Amazon interview question

Something to do with string anagram