problem048.py : Completed