208. Reverse the Hero's Name

Easy · String

The evil wizard cursed your hero's name — it's now backwards! Write a function that reverses a string to restore it.

Examples

Example 1
Input: name = "anuL"
Output: "Luna"
Explanation: Reversed string

Constraints