Reverse a String
easyDescription & examples
Return a new string with the characters in reverse order. Spaces count as characters.
Examples
text = "foxey" → "yexof"
text = "a b" → "b a"
text = "" → ""
Constraints
0 ≤ length ≤ 10,000. Input contains printable ASCII characters.
Guided help
Take one nudge at a time. The full walkthrough opens only after you choose Show Solution.
