Pergunta de entrevista da empresa TikTok

One coding question: 300. Longest Increasing Subsequence