Added problem 1 solution.