Write a function that reverses a string and returns the result.
s = "hello"
"olleh"
s = "A man"
"nam A"
0 <= s.length <= 10^5
Topics
Implement reverseString in the editor and return the answer — printing it is never graded.
reverseString
Problem 4 of 1146 in the arena