IBM interview question

Leetcode group anagrams medium question