Question Link:
Please can someone provide a testcase for which my solution is failing?
https://www.codechef.com/viewsolution/53755072