Longest Non-decreasing Sequence