X interview question

Largest increasing subsequence array leetcode.