Given a string s, return the string reversed.
For example, if the input is "hello", the output should be "olleh".
s = "hello""olleh"s = "world""dlrow"s = "a""a"0 <= s.length <= 10^5s consists of printable ASCII characters.Run your code to see results
Use Cmd+Enter to run