How to reverse the sequence of words in a sentence ?
For eg:- Input is “This is a test”
Output should be:- “Test a is this”
How to write a program for this ?
goli202084 Changed status to publish
Loop through split strings by space and push to string array in reverse order
goli202084 Answered question