Find Resultant Array After Removing Anagrams
Keep a word only when it is not an anagram of the last kept word, which removes every adjacent anagram in one pass.
Keep a word only when it is not an anagram of the last kept word, which removes every adjacent anagram in one pass.