#C4117. Reverse String
Reverse String
Reverse String
You are given a single string s consisting of uppercase letters. Your task is to output the reverse of s. The input is read from STDIN and the output should be written to STDOUT.
Example:
- If the input is
HELLO
, the output should beOLLEH
.
Implement your solution accordingly and ensure that it works for various test cases including edge cases.
inputFormat
A single line containing the string whose reverse is to be computed. The string comprises only uppercase letters.
outputFormat
A single line containing the reversed string.## sample
HELLO
OLLEH