Write a program to reverse a string while keeping special characters in their original positions. Treat letters and digits as reversible characters, and treat every other character as special. Implement def reverse_string(s):, returning a new string with the required arrangement. Preserve the relative positions of spaces, punctuation, and symbols.
isalnum() returns False.def reverse_string(s):