Pergunta de entrevista da empresa Tripadvisor

Binary search, write a binary search program.