Solve common string/DP/stack problems | TikTok Interview Question