Tesla interview question

Leetcode "hard" programming question, dynamic programming related.