Redirecting you to http://en.wikipedia.org/wiki/Longest_common_subsequence_problem