Pergunta de entrevista da empresa Phenom

one question related to binary search