Chess.com interview question

Explain some design patterns and examples