Given a string S, containing special characters and all the alphabets, reverse the string without
affecting the positions of the special characters.
The first line of input contains an integer T denoting the number of test cases. Then T test cases
The first line of each test case contains a case-insensitive string S.
Print out the reversed string without affecting special characters.
1 <= T <= 100
0 < S <= 100
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.