Solutions in Ruby to Coderbyte's medium difficulty coding challenges