Solve Longest Common Subsequence from atton