Leetcode 2407. Longest Increasing Subsequence II | Hello Interview