Write a program to reverse digits of a number N.
The first line of input contains an integer T, denoting the number of test cases. T testcases follow. Each test case contains an integer N.
For each test case, print the reverse digits of number N .
1 ≤ T ≤ 104
1 ≤ N ≤ 1015
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.