DXC Technology Interview Question

Design patterns pros and when to use which