MathWorks interview question

DP-style leetcode questions from the "hard" category.