PlayStation interview question

1st round; Leetcode 49 - group anagrams.