Domanda di colloquio di AlphaSights

How's the binary search works? time complexity