problem_2.py : Completed