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

Starter code:

Solutions:
oo = int(input())
for i in range(oo):
	val = input()
	print(val[::-1])

for _ in range(int(input())):
    s=input()
    print(s[::-1])

# cook your dish here
t=int(input())
for _ in range(t):
    a=input()
    for i in range(len(a)-1,-1,-1):print(a[i],end="")
    print()
    

t=int(input())
for i in range(t):
    a=input()
    print(a[::-1])

# cook your dish here
t=int(input())
for i in range(0,t):
    x=input()
    print(x[::-1])

# cook your dish here
t=int(input())
while (t > 0) :
    st = input()
    for i in range(0,len(st)) :
        print(st[len(st)-1-i],end="")
    t-=1







# cook your dish here
n=int(input())
while(n):
    s=input()
    print(s[::-1])
    n-=1

number_of_testcases = int(input())

def solve(string):
    n = len(string)
    for i in range(n-1,-1,-1):
        print(string[i],end="")
    print()
    
for i in range(0,number_of_testcases):
    input_string = input()
    solve(input_string)

# cook your dish here
for _ in range(int(input())):
    s=input()
    print(s[::-1])

# cook your dish here
for _ in range(int(input())):
    s=input()
    print(s[::-1])

t=input()
t=int(t)
while(t>0):
	s=input()
	for i in range(len(s)-1,-1,-1):
		print(s[i],end="")
	t-=1
 	
  


x=int(input())
for i in range(x):
    z=input()
    print(z[::-1])

# cook your dish here
for i in range(int(input())):
    s=input()
    for m in range(len(s)-1,-1,-1):
        print(s[m],end="")
    print()

# cook your dish here
for i in range(int(input())):
    s=input()
    for m in range(len(s)-1,-1,-1):
        print(s[m],end="")
    print()

# cook your dish here
for i in range(int(input())):
    s=input()
    for m in range(len(s)-1,-1,-1):
        print(s[m],end="")
    print()

t=int(input())
while(t):
    s=input()
    ar=[str(x) for x in s]
    print(''.join(str(x) for x in ar[::-1]))
    t-=1

# cook your dish here
import math
for _ in range(int(input())):
    s=input()
    print(s[::-1])

# cook your dish here
t = int(input())
for i in range(t):
    s = input()
    print(s[::-1])

# cook your dish here
n = int(input())
for i in range(n):
    s=input()
    print(s[::-1])

t= int(input())
for i in range(t): 
	s= input()
	sl= len(s)
	for j in range(sl-1,-1,-1):
		print(s[j],end="")

t=int(input())
while(t):
    s=input()
    ar=[str(x) for x in s]
    print(''.join(str(x) for x in ar[::-1]))
    t-=1

# cook your dish here
count = input()
for i in range(int(count)):
    stringToConvert = input()
    for i in reversed(range(len(stringToConvert))):
        print(stringToConvert[i],end='')
    print('\n')


for _ in range(int(input())):
    print(str(input())[::-1])

N=int(input())
while(N>0):
    N=N-1
    s=str(input())
    print(s[::-1])


# cook your dish here
for t in range(int(input())):
    st=input()
    x=''.join(reversed(st))
    print(x)