ruby/anagram initial passthrough