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 #

"Google"

Output #

Reversed string

Sample output #

"elgooG"

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

Get hands-on with 1400+ tech skills courses.