added solution to 6 problems
Merge pull request #1 from ritesh-pandey/ex6

added solution to 6 problems