
Reverse words in a given string
Given a String of length N reverse the words in it. Words are separated by dots. Input:The first line contains T denoting the number of testcases. Then follows description of testcases. Each case contains a string containing...