Anagram by groups.