86. Secret Mirror Message

Acceptance — 0 accepted 0 submissions

Easy
StringsTwo Pointers
No companies listed
Two friends send secret messages by writing them backwards. Given a message, print it reversed, character by character (spaces included).

Input Format
A single line containing the message.

Output Format
Print the reversed message.

Constraints
• 1 ≤ length ≤ 1000
• The message has letters and spaces, and does not start or end with a space.

Example 1

Input
hello world
Output
dlrow olleh

Explanation Read from right to left.

Example 2

Input
abc
Output
cba

Explanation c, b, a.

Example 3

Input
Madam
Output
madaM

Explanation Capital M moves to the end.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
dlrow olleh
No results yet
Run your code to test it against the sample cases.
Problem List