Pregunta de entrevista de Epimax

How would you implement a binary search algorithm?