Pregunta de entrevista de EY

Based on Oops, design patterns