solved 31 ruby
solved 31 ruby