ruby: 3rd exercise (anagram) first iteration