Pergunta de entrevista da empresa BlackBerry

revert all words in ArrayList without creating new ArrayList