Pergunta de entrevista da empresa T. Rowe Price

How would you implement binary search?