MathWorks Interview Question

leetcode questions, how to arrange a sequence etc