MathWorks Interview Question

Binary search based leetcode question