Anagram Clustering - Coding problem | OneNoughtOne