DP: longest increasing subsequence — Python practice — Live Code Tutor