Exchanging coins One test case showing wrong answer

one test case of the problem is showing wrong answer for my code .
plz check it and correct ir.

problem : https://online.codingblocks.com/app/player/39658/content/77394/5052/code-challenge

code : https://ide.codingblocks.com/s/211579

reply ASAP

plz respond to the doubt

@sengarankit98,
Updated Code here