10 XP challenge

Read a Message Backwards

easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve

Task
Your mission

Return message with its characters in reverse order, including spaces and punctuation. message contains 0 to 40 ASCII characters.

Examples

InputReturn
message = "cat"

answer: "" → "t" → "ta" → "tac". The result is "tac".

"tac"
message = "a b!"

answer: "" → "!" → "!b" → "!b " → "!b a". The result is "!b a".

"!b a"

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.