Reverse a String

Problem 1 of 10

Write a function to reverse a string.

Input: hello

Output: olleh

Loading...

CONSOLE

⏳ Loading Python...