Added solution to problem 19 in python.