CG Infinity interview question

Q. Design Patterns and Solid Principle