Fun With Anagrams Javascript, My attempt to explain it is below the expected output and the function itself.