Mental Model
Find the longest starting part that all words share exactly the same letters in order.
Analogy: Imagine several friends starting a race together and running side by side. The longest common prefix is like the distance they all run together before anyone speeds up or slows down.
words: [flower, flow, flight]
indexes: 0 1 2 3 4 5 6
f l o w e r
f l o w
f l i g h t
prefix: ↑ ↑