Pregunta de entrevista de Chess.com

Explain some design patterns and examples