Group anagrams with a key built from letter counts instead of sorted letters. The idea is drawn out first, and the code starts at 4:35.