#C4117. Reverse String

    ID: 47620 Type: Default 1000ms 256MiB

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 be OLLEH.

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