DIY: Group Anagrams

Solve the interview question "Group Anagrams" in this lesson.

Problem Statement

You are given a list of words or phrases, and you need to group the words that are anagrams of each other. An anagram is a word, phrase, or sentence formed from ...