add code for problem 4 and 6
Merge branch 'master' of https://github.com/anujkaliaiitd/Courses
Merge branch 'master' of https://github.com/anujkaliaiitd/Courses