Pergunta de entrevista da empresa Tapad

Implement a binary search algorithm from the beginning.