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

Get hands-on with 1200+ tech skills courses.