EPI - Q12.7 - Group dictionary words in subsets of anagrams

Used prime numbers per char and product, but better is sorting the
words by char before hashing.