problem017.py : Completed