refactored anagram.rb to use meaningful key and value names in hash