Frage im Vorstellungsgespräch bei Altimetrik

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