Pergunta de entrevista da empresa Phenom

A question related to binary search