Pergunta de entrevista da empresa Morgan Stanley

a design question based on decorator pattern