Adobe interview question

Leetcode medium to hard dynamic programming coding question