is_palindrome(s) that returns True if the string s reads the same forwards and backwards, checked with a loop that compares characters from both ends moving inward (do not use slicing to reverse the string).is_palindrome("racecar")True
Reads the same forward and backward.
is_palindrome("hello")False
Not symmetric.
Use two pointers, `left = 0` and `right = len(s) - 1`, moving toward the center.
Return False as soon as a mismatch is found.