Question d’entretien chez American Express

how to implement binary search