Two strings are considered anagrams if the characters of one string can be rearranged to form the second string. For instance, "cat" and "act" are anagrams because the letters of "cat" can be rearranged to spell "act". "cat" and "cat" are also anagrams of each other.
This file contains a line-separated list of strings. Let A be the number of strings in the file that are an anagram of another string in the file. What is A?
Click here to open the file.