Reverse a String
Print the given string reversed.
Input: one line containing a string S (1 ≤ |S| ≤ 105) of printable ASCII characters without spaces.
Output: the string S reversed.
Sample Tests
Input 1
hello
Output 1
olleh
Input 2
ab
Output 2
ba
Discussion (opens after you solve — no spoilers before)
No comments yet.