Mental Model
Use two pointers starting from both ends of the string and move towards the center, comparing characters to check if the string reads the same forwards and backwards.
Analogy: Imagine two friends starting at opposite ends of a hallway, walking towards each other while checking if the tiles under their feet match. If all matching tiles are the same, the hallway is symmetrical.
s = "racecar" Indices: 0 1 2 3 4 5 6 String: r a c e c a r Pointers: left ↑ right ↑
