Stuck with incorrect answer for recursive binary search in recursion basics


their is problem in code and i am not able to understand and output is coming wrong ,please help me using same syntax.

since u have taken array size to be 100000
and n as size of arr
hence u need to take these many inputs

either take i/p regarding size of array
and tk that many in/p