Solve problem 62 using Python.