Fidelity Investments Interview Question

Reverse a sentence in java?