Problem 62 solution
Problem 63 solution