Pergunta de entrevista da empresa Amazon

It was a Leetcode question - Grouping of Anagrams