MathWorks Interview Question

DP stack queue programming DS