Pregunta de entrevista de Limeroad

A medium level coding problem related to binary search.