Pregunta de entrevista de Standard Chartered Bank

asked me to write some java programs