MathWorks interview question

Very Straight forward so far.