MathWorks Interview Question

Matlab questions were difficult