Pregunta de entrevista de T. Rowe Price

How would you implement binary search?