Solve Problem 3