Domanda di colloquio di Magnitude Capital

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