Pregunta de entrevista de Mobica

How would you implement a binary search algorithm?