Domanda di colloquio di Limeroad

A medium level coding problem related to binary search.