Update the answer to problem1
resolve merge conflict in problem1.rb