J.P. Morgan Interview Question

Java and J2EE, Design pattern