Finding the Longest Common Subsequence (LCS) string