AlphaSights Interview Question

How's the binary search works? time complexity