anagram iteration 1