Reverse a given sentence in java
- by giri
This was the question asked me in amazon interview. I could not solve the problem properly,
Write a program to reverse a given sentence like "This is interview question" the output must be "question interview is this".Can any tell me how to get this done?
Thanks in advance