• First read the problem statement carefully
  • Check the sample input and output and requirement of the problem statement
  • Now, start writing and run the code and submit once the test cases are passed