


S = “hello”
Explanation :
The reverse of the string ‘S’ is “olleh”.
The first line contains an integer 'T' which denotes the number of test cases to be run. Then the test cases follow.
The only line of each test case contains a string ‘S’.
For each test case, print a string denoting the reverse of the string ‘S’.
Print the output of each test case in a new line.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 5
1 <= S.length <= 10^5
Time Limit: 1 sec