Added solutions in 'problem.rb'