Roku Interview Question

Binary search modification Leetcode 162