Google interview question

Group all the Anagram strings