easy
strings
Problem Description
Given a string s, write a function reverse_string(s: str) -> str to reverse the input string and return the reversed string as output.
Function Signature
Output
The reversed string of s.
Examples
Example 1
Input: s = "hello"
Output: "olleh"
Example 2
Input: s = "Tesla"
Output: "alseT"
Example 3
Input: s = "12345"
Output: "54321"
🔒 7 hidden
Running will execute all 10 cases, including 7 hidden ones.