Literally Reverse Coding

3

1 votes
Problem

Derive the logic used to produce the desired output. It's Reverse Coding.

INPUT:

A single integer t representing test cases

Next t lines, A integer x, and string s where x is the length of the string

OUTPUT:

t lines, one string per line.

(Hint: ZED, WHY is your EX wearing a DOUBLE-U ? WE know that YOU won't allow that in a TEA party. hESS was complaining about it , and we ARE ashamed. Quite PEEs'd off)

CONSTRAINTS:

t < 1000

1 <= x <= 50

 

Sample Input
5
4
azdc
10
cape12Hall
9
1UnItTeSt
11
HaZlOfFraMe
4
1zDr
Sample Output
zawx
xzkv12Szoo
1FmRgGvHg
SzAoLuUizNv
1aWi
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?