Question d’entretien chez J.P. Morgan

What changes would I make in the java code