Wipro interview question

Programming question on grouping anagrams