Add challenge solution

prog3.py contains the solution to programming challenge 3