Problem 15

Python 2.7