Added solution to Problem 20 in Python.