Coding Challenge: Reverse a Word

Learn how to take a string as an input and returns that same string but in a reversed order.

Problem statement

Write a program that returns the given word in reverse order.

Input

reverse("fly");
reverse("beautiful");

Expected output

ylf
lufituaeb

Coding exercise

Access this course and 1400+ top-rated courses and projects.