Accepts a string from the user and print the reverse string as the output without using any built-in function.
-----Input:-----
Each testcase contains of a single line of input, a string.
-----Output:-----
For each testcase, output in a single line answer, the reverse string.
-----Sample Input:-----
1
Tracy
-----Sample Output:-----
ycarT
# cook your dish here
t = int(input())
for i in range(t):
    s = input()
    print(s[::-1])
# cook your dish here
t = int(input())
for i in range(t):
    s = input()
    print(s[::-1])