Pergunta de entrevista da empresa Magnitude Capital

One online question :find the error in an binary search function .