Solve a coding problem on the spot, such as implementing a function to check if a string is a palindrome.
Implement is_palindrome(s) to return True when the input string reads the same from left to right and right to left, and False otherwise. Treat characters as case-sensitive and include spaces and punctuation in the comparison.
Input: A string s.
Output: A Boolean value.
Examples: "level" returns True; "hello" returns False.
Constraints: 0 <= len(s) <= 10^5; s may contain letters, digits, spaces, and punctuation.
def is_palindrome(s):