Meta interview question

Dynamic Programming Question