Intel Corporation interview question

Leetcode question on Group Anagrams