Longest Common Subsequence Leetcode Python Practice