problem statement:
Can anyone give a test case for which this code won’t work…? I am getting WA.
Edit: got the test cases. already solved.