Mental Model
Find the longest sequence of characters that appears in both strings without skipping any characters.
Analogy: Imagine two friends reading two different books and trying to find the longest exact sentence that appears in both books without any missing words.
String1: a b c d e f g String2: x y b c d z Longest common substring: b c d
