Domanda di colloquio di Amazon

Write a program to find the longest increasing subsequence