Please enter your email address or userHandle.
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.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.