Pregunta de entrevista de Tripadvisor

Binary search, write a binary search program.