MathWorks Interview Question

All of them were Straight Forward.