Problem 36

Solution to Problem 36. Note that solution was solved in Python version
3.