Synechron applications may need to validate mirrored identifiers or text values. Write a function that determines whether a given string is a palindrome while using as little additional memory as possible.
A string is a palindrome if it reads the same from left to right and right to left. Comparison is case-sensitive, and every character, including spaces and punctuation, must be considered exactly as provided.
Implement is_palindrome(s), where:
s, a string containing zero or more ASCII characters.True if s is a palindrome, otherwise return False.def is_palindrome(s):