UBS Interview Question

Java design patterns and follow-ups