added solution to exercise 12
Merge pull request #2 from ritesh-pandey/ex12

added solution to exercise 12