Phenom Interview Question

one question related to binary search