Domanda di colloquio di Goldman Sachs

Explain Longest subsequence with example