Pergunta de entrevista da empresa Sailthru

Please code out the algorithm for binary search