Pregunta de entrevista de SAP

1 question was on using binary search to solve problem