In AlphaSense, query text entered in search surfaces may need simple string transformations during client-side processing. Write a function that takes a string s and returns a new string with its characters in reverse order.
ss in reverse orderExample 1
s = "alphasense""esnesahpla"Example 2
s = "AI 2024!""!4202 IA"0 <= len(s) <= 10^5s may contain uppercase letters, lowercase letters, digits, spaces, and punctuations = "alphasense"Output"esnesahpla"WhyEach character appears in the opposite order from the original string.s = "AI 2024!"Output"!4202 IA"WhyThe function reverses every character, including the space and exclamation mark.s = ""Output""WhyAn empty string remains empty after reversal.0 <= len(s) <= 10^5s may contain letters, digits, spaces, and punctuationReturn a new reversed string without removing any charactersdef reverse_string(s):