One thing is sure, you need to use recursion. Design an algorithm something like this:
You send the last two words of the statement to a method, which alters the sequence and returns the new sequence, which can be appended to the current
string. This can be recursively called.
Hope you get some hint from this.
Njoy!!!
[ April 13, 2007: Message edited by: Sidd Cool ]