Paycom interview question

Solve Group Anagrams question from LeetCode