TikTok interview question

Dynamic programming question found on leetcode