Domanda di colloquio di NTT DATA

What is the logic for binary search?