TikTok Interview Question

Data structures and dynamic programming