Revolut interview question

Longest Increasing Subsequence on leetcode. Other question not available online