MathWorks Interview Question

DP question pretty easy one