How would you list words that are anagrams of each other?
I was asked this question when I applied for my current job.
orchestra can be rearranged into carthorse with all original letters used exactly once therefore the words are anagrams of each other.
orchestra
carthorse
Sort each element (removing whitespace) and compare against the previous. If they are all the same, they're all anagrams.