Pregunta de entrevista de AlphaSights

How's the binary search works? time complexity