TikTok interview question

Longest Increasing Subsequence Leetcode problem