SAP interview question

group Anagrams from leet code for strings