You are given a list of words. Put together the words that use the same letters with the same frequencies.
Two words belong in the same group when one can be rearranged to form the other. The groups may be returned in any order.