
Given a string s, return the characters in reverse order as a new string. Aim for a linear-time solution and handle empty strings, spaces, and punctuation correctly.
s = "hello"Output"olleh"WhyReverse the character order.s = "a b!"Output"!b a"WhyAll characters, including spaces, are reversed.`0 <= len(s) <= 10^5``s` may contain letters, digits, spaces, and punctuationReturn the exact reversed string