Solution to RubyQuiz #1 "The Solitaire Cipher" (http://rubyquiz.com/quiz1.html)