MathWorks Interview Question

reference vs pointer