[1]
Code runs fine for the example given in the question, but after submission I am getting wrong answer.
TIA
[1]: https://www.codechef.com/viewsolution/23157869
[1]
Code runs fine for the example given in the question, but after submission I am getting wrong answer.
TIA
[1]: https://www.codechef.com/viewsolution/23157869