PwC interview question

Explain how a decorator works