Pregunta de entrevista de Acme Markets

Binary Search coding question problem