Java Reverse a String
Submissions: 3082   Accuracy:

43.58%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Given a String S , print the reverse of the string as output.

INPUT: The first line consists of an integer T i.e. the number of test cases. Only line of each test case consists of an String S .

OUTPUT: Print the required output.

CONSTRAINTS:

1<=T<=100
1<=|String Length|<=103

EXAMPLES:
INPUT :

1
GeeksforGeeks

OUTPUT : 

skeeGrofskeeG

** For More Input/Output Examples Use 'Expected Output' option **

Author: saksham0751


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.