Mental Model
Find the longest starting part that all words share. We compare letters from the start until they differ.
Analogy: Imagine several friends starting a race together. The longest common prefix is like the longest stretch of road they all run side by side before some take different turns.
words: [flower, flow, flight] indexes: 0123456789 prefix: ↑↑
