Mental Model
Find the longest part of a string that reads the same forwards and backwards by checking around each character.
Analogy: Like looking for the biggest mirror reflection in a line of letters, starting from each letter and expanding outwards to see how far the reflection goes.
s = "b a n a n a" indexes: 0 1 2 3 4 5 Check centers: ↑ b a n a n a
