Added the second math problem in Ruby