Pergunta de entrevista da empresa Mobica

How would you implement a binary search algorithm?