working problem 5
Merge pull request #2 from vijaygopalchilkuri/prob5

working problem 5