MathWorks Interview Question

Wasn't that difficult!