Print Longest Increasing Subsequence (LIS)

e.g.

{2, 6, 4, 5, 1, 3}

the LIS = {2, 4, 5}