Cognizant Interview Question

Design patterns, Spring