Solved Problem 40
Solved Problem 52