Solve Problem 45