Pregunta de entrevista de Tapad

Implement a binary search algorithm from the beginning.