Return a new string containing the characters of s in reverse order. Preserve spaces, punctuation, casing, and repeated characters exactly.
Input / output
s: stringExamples
"hello" returns "olleh"."Hello, World!" returns "!dlroW ,olleH".Constraints
0 <= s.length <= 100,000Follow-up How would the solution change if the input were a mutable character array that must be reversed in place?