added solution to exercise 13
Merge pull request #3 from ritesh-pandey/ex13

added solution to exercise 13