Create problem36.rb

works well