Infosys Interview Question

anagram grouping leetcode medium question pseudocode.