At Slack, you are asked to implement a utility function that reverses a string. Given a string s, return a new string with the characters of s in reverse order.
ss, but in reverse orderExample 1
Input: s = "hello"
Output: "olleh"
Explanation: The characters h, e, l, l, o appear in reverse order as o, l, l, e, h.
Example 2
Input: s = "racecar"
Output: "racecar"
Explanation: This string is a palindrome, so reversing it produces the same string.
Example 3
Input: s = "a b!"
Output: "!b a"
Explanation: Spaces and punctuation are treated like normal characters and are reversed as well.
0 <= len(s) <= 10^5s may contain letters, digits, spaces, and punctuationO(n) time