Pregunta de entrevista de Microsoft

I was asked to implement the ordinary binary search algorithm.