problem_3.py : Completed