Given a String of length N reverse the words in it. Words are separated by dots.
The first line contains T denoting the number of testcases. Then follows description of testcases. Each case contains a string containing spaces and characters.
For each test case, output a single line containing the reversed String.
1<=Lenght of String<=2000
**For More Examples Use Expected Output**
Disclaimer: This content belongs to geeksforgeeks, source: http://geeksforgeeks.org