MathWorks interview question

All the questions were basic.