The Reverser!

Published by Bonunu in

The "Reverser" takes a string as input and returns that string in reverse order, with the opposite case.

Examples

reverse("Hello World") ➞ "DLROw OLLEh"

reverse("ReVeRsE") ➞ "eSrEvEr"

reverse("Java compiler") ➞ "RELIPMOC AVAj"

Notes

There will be no punctuation in any of the test cases.

Watch a quick demo on how Edabit works.