To find the length of the longest not descending subsequence.
The first line n, represents the number of n.
The second line: the numbers of n.
3 1 2 3
3