Pregunta de entrevista de Google

Implement an algorithm based on binary search