Update problem03.rb

A simple solution.