Longest common subsequence (LCS)

Each sequence can contain up to 12 characters.