problem019.py : Completed