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