Concept Flow - Group Anagrams Using Hash Map
Start with list of words
Take one word from list
Sort letters of the word
Use sorted word as key in hash map
Add original word to list at this key
Repeat for all words
Collect all lists from hash map
Return grouped anagrams
We take each word, sort its letters to create a key, then group words with the same key in a hash map.
