Completed the assignment 3,4,6
Merge pull request #1 from krishnaiitd/problem3

Completed the assignment 3,4,6