MathWorks Interview Question

OOD question