Pregunta de entrevista de OYO

Binary search and question on it