MARCH CIRCUITS 20 HackerEarth First 4 Solutions

The first 4 solutions here
I did the 3rd one without using any advanced concepts.