Problems
easyReverse a String
2 Koda Coins

Reverse a String

easy2s limit💾 64 MB

Description

Given a string S, reverse the string in-place (or output the reversed string if strings are immutable in your language).


Input Format

  • A single string S.

  • Output Format

  • Print the reversed string.

  • Constraints

  • 1 <= |S| <= 10^5