Fourth iteration for anagram