Tesla interview question

DP easy question from leetcode