Frage im Vorstellungsgespräch bei TikTok

Dynamic programming (DP) and string manipulation Leetcode-style question.