Pregunta de entrevista de MathWorks

Leetcode Medium Question about Arrays with binary search.