Shows wrong answer on submission

This is a problem from Contest Code:[PRACTICE] Problem Code:[FLOW007]
My code gives wrong answer on submission but when give sample input through custom input. I get the same sample output as shown in the question. Please explain ?
https://www.codechef.com/viewsolution/45495013

code script

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

input:
3
1434
258
3456

output

4341
852
6543

Your code fails the sample test case xD

Input

4
12345
31203
2123
2300

Your Output

54321
30213
3212
0032

Expected Output

54321
30213
3212
32
2 Likes