MathWorks interview question

leetcode questions, how to arrange a sequence etc