[ANAGRAMS] - anagram logic added