Phenom interview question

one question related to binary search