Update prob1.rb

knnyluk's initial solution