Problem 15, Python
Problem 17, Python