Longest common subsequence (LCS) - Course 3