DXC Technology interview question

Design patterns pros and when to use which