MathWorks Interview Question

simple questions, just leetcode problems & behavior