Challenge: Reverse a String

This lesson brings you a challenge to solve.

Problem statement #

Write a function that takes a string and reverses it.

Input #

A string

Sample input #


Output #

Reversed string

Sample output #


Try to implement the function below. Feel free to view the solution, after giving some shots. Good Luck!

Get hands-on with 1200+ tech skills courses.