Question d’entretien chez Tripadvisor

Binary search, write a binary search program.