Determines the longest strictly increasing subsequence in a sequence using previous computed states.
Explain code with DocComment! Try out your own code!