CS3270 Anagrams assignment