Reverse a String

Easy
50 XP

Challenge Description

Write a function to reverse a string.

Examples

Example 1:

Input:

"hello"

Output:

olleh
Example 2:

Input:

"world"

Output:

dlrow

Languages

Challenge Stats

Total Attempts

0

Status