Question d’entretien chez Pawan Kumar

How does a binary search algorithm work?