acceldata Interview Question

A problem on binary search