Pregunta de entrevista de ABC

about binary search and asked to implement binary search