One test case not passing

what is the problem with my code , only one test case not passing .


reply as soon as possible.

@D19APPPP0016 you have to print -1 if ans do not exist.
if your doubt is cleared dont forget to hit like and mark resolved :smiley: