Write a function that takes a string as input and returns the string reversed.
反转字符串。
Example:
Given s = "hello", return "olleh".
def reverseString(self, s):
"""
:type s: str
:rtype: str
"""
return s[: : -1]
Write a function that takes a string as input and returns the string reversed.
反转字符串。
Example:
Given s = "hello", return "olleh".