- Read the Question very carefully in the 1st chance.
- Look at the Input and Output Format of the program.
- Look at the constraints of the program.
- Choose your programming language.
- Set the conditions.
- Start Coding.
- Check Public test cases are passed or not?
- Then check Private test cases are passed or not?