In the Capital One mobile app, some UI utilities need to display text in reverse order for debugging and formatting checks. Write a function that takes a string s and returns a new string with its characters reversed.
ss in reverse orderYour function should preserve all characters exactly as they appear, including spaces, punctuation, digits, and letter case.
Example 1
Input: s = "capital"
Output: "latipac"
Explanation: The characters are returned in reverse order.
Example 2
Input: s = "Capital One"
Output: "enO latipaC"
Explanation: Spaces are treated like any other character and are also reversed.
Example 3
Input: s = "a"
Output: "a"
Explanation: A single-character string is unchanged when reversed.
0 <= len(s) <= 10^5s may contain letters, digits, spaces, and punctuation