Pregunta de entrevista de Backbase

Java programme with medium difficulty