Pregunta de entrevista de Pearson

design patterns, really easy coding exercise.