Leetcode Longest Common Sequence Algorithm Examples