Added Problem 12's solution.