Domanda di colloquio di Microsoft

A binary search problem which can be found on leetcode