initial answer for anagram in ruby