Mental Model
Check if a word reads the same forwards and backwards by comparing characters from both ends moving towards the center.
Analogy: Like two friends starting at opposite ends of a line of people, checking if each pair looks the same until they meet in the middle.
s = "racecar" left ↑ right ↑ r -> a -> c -> e -> c -> a -> r -> null
