I tried doing what is said in the editorial. But getting WA. Can anyone help me find out where am I going wrong, or give any test case where my code fails. I’ve tried with different test cases, it passes all of them. It also passes the sample test cases. Please help…!
LINK TO MY CODE : Solution