Amazon Interview Question

leetcode problem called group anagrams and a follow up