MathWorks Interview Question

questions using leet code concepts