Solves Problem 14 in Python
Solves Problem 15 in Python