TikTok interview question

LeetCode hard problems require in-depth knowledge of dp.