ZoomInfo interview question

Write a Code on anagram grouping