Coding (explain approach only): check whether a string is a palindrome.
Asked in the Round 1 (technical) stage. verbal, no live coding.
Implement is_palindrome(s) and return True when s reads the same forward and backward, otherwise return False. Treat characters as case-sensitive, and consider every character, including spaces and punctuation.
s.def is_palindrome(s):