Question d’entretien chez ServiceNow

Explain binary search with code