Created solution to Challange #4 in Python.