DXC Technology interview question

Design Patterns