Test case not satisfying

this is the code for binary search.
but test case 0 is not satisfying.
please see through the code:

Hello @kamakshi.behl22,

There are few mistakes in your code.
I have corrected them:


Refer to comments for better understanding.

Hope, this would help.
Give a like if you are satisfied.