Pergunta de entrevista da empresa Oracle

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