add solution for anagrams