Distinct Substring
added longest increasing subsequence