MathWorks interview question

Coding is Leetcode easy-medium Technical is thorough