Domanda di colloquio di Pawan Kumar

How does a binary search algorithm work?