Pregunta de entrevista de TikTok

One coding question: 300. Longest Increasing Subsequence