Longest Common Subsequence

The longest common subsequence of strings and is the longest string s such that s is a subsequence of both and . i.e. we can get s by starting at some point in s1, reading through