Oracle Interview Question

Was asked to write a Java program that reverse words in a string without using any String default functions