Edited file to add my solution

Edited file to add my solution for Programming assignment # 2