Initializing model...

Reverse String

easy

Write a function that reverses a string. The input string is given as a string `s`.

Return the reversed string.

Function Signature

def reverse_string(s: str) -> str:

Examples

Input: s = "hello"
Output: "olleh"
Input: s = "world"
Output: "dlrow"