implement Anagrams assignment, buggy yet