Domanda di colloquio di TikTok

One coding question: 300. Longest Increasing Subsequence