34.rb
34 solution