Leetcode 2370. Longest Ideal Subsequence | Hello Interview