Longest Common Subsequence
Problem Statement
Given two strings, find the length of their longest common subsequence (LCS).
A subsequence is formed by deleting zero or more characters without changing the order of the remaining characters. For example, "ace" is a subsequence of "abcde" because we can delete "b" and "d". But "aec" is not, because the order changes.
word1 = "abcde" word2 = "ace" LCS = "ace", length = 3