MVP ruby anagram
refactored anagram.rb