Pergunta de entrevista da empresa Fidelity Investments

How you write code to reverse string in Java? What steps to be taken to improvement of your written code. Next there were code snippets which asked you to explain through and define output.