Reverse strings in a line without changing the word order and special character should not be changed in the word
considering the edge cases like when in a word if it has only one character and remaining all are special characters and escape characters. Can any one help in achieving the solution in O(n)?