NTT DATA Interview Question

What is the logic for binary search?