Help rahul to search

First test case is not pass and second test case pass and i use binary search algorithm