Domanda di colloquio di Morgan Stanley

a design question based on decorator pattern