MathWorks interview question

Matlab questions were difficult