problem025.py : Completed