Question d’entretien chez Oracle

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