MathWorks Interview Question

All questions were simple