Update problem50.rb

update