Can you please tell the approach how to solve

can you please tell the approach how to solve

You have to solve this question using the concept of binary search… I would recommend you to go through online video lecture on the same problem as ,