Your question is Reverse Capital One App String. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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.
def reverse_string(s):