Pregunta de entrevista de Nokia

String reversal in Java and some other basic programming questions