Sorted array - recursion

not able to pass one test case. whats wrong with my code. kindly help.


Check the comments in line-11, there’s a error.