Step 5 of 12 · Strings
Reverse a word
Problem
Read one lowercase word and return its characters in reverse order.
Input
One lowercase word with no spaces.
Output
The same word reversed.
Examples
Input
semantic
Output
citnames
Reading semantic from right to left produces citnames.
Input
level
Output
level
A palindrome is unchanged when reversed.