Question d’entretien chez Meta

Longest Increasing Subsequence, with different constraints