Test case not passed

In this question my code is working fine in two test cases but it is not working in third test case

@dd090102_d0e70f0132b9b388 your code is failing for test-cases like :
1
8
8
Expected answer = 0
your answer = -1.
Debug your code for this.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.