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