Altimetrik interview question

Java Code - {"eat, ate, tab, bat"} - to Group (Segregate) Anagrams