Reverse array

For a given array reverse its order.


In the first line there will be a number of the data sets t. In the next t lines data sets follows. Each data set is a line of numbers separated by spaces. First number ni is the length of the array. Next ni numbers are the values in array.


For ith data set write values from array in reversed order. Numbers should be separated by spaces and answers for data sets should be separated by a new line.


7 1 2 3 4 5 6 7
3 3 2 11

7 6 5 4 3 2 1
11 2 3

Please log in to submit your solution.