Capital One interview question

Design Patterns related questions in Java