Solve Problem 17