Help Rahul to search

test case 1 is not passing here, please take a look.
I used the inbuilt binary_search() here.
I attached the link to the problem.