**Solution below.**

This is based off the fact that prime factors of a number are unique. This means that there is a direct mapping from the prime factors of a number to it's original number. Therefore if we treat each letter as a prime factor, no matter what permutation of the string is presented the product of every factor will equal the same number if they are anagrams. The solution is presented below.