Solve problem 2 in Python
Solve problem 1 in Scheme
Solve problem 2 in Scheme