Finding the Longest Increasing Subsequence Using Segment Tree · HackerTrans