Reverse String


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Donat un String, invirteix-lo.

Input Format

Una línia de text.

Constraints

No hi ha.

Output Format

El text amb l'ordre dels caracters invertit.

Test Case 1

Input
a
Output
a

Test Case 2

Input
abcde
Output
edcba

Test Case 3

Input
ab c d efgh
Output
hgfe d c ba

Test Case 4

Input
cgctagcttagctaacg
Output
gcaatcgattcgatcgc

Authorship: Gerard Falcó

CC BY-NC-SA 4.0