Pergunta de entrevista da empresa Limeroad

A medium level coding problem related to binary search.