
Given a string s, return whether it is a palindrome. A palindrome reads the same forward and backward, and the expected solution should use a direct linear scan.
s = "racecar"OutputTrueWhyAll mirrored characters match.s = "hello"OutputFalseWhyThe first and last characters differ.`0 <= len(s) <= 10^5``s` contains only printable ASCII charactersAim for `O(n)` time