OOP & Design Patterns - Decorator Pattern - Wrapping Behaviour Without Subclassing
What is the time complexity of computing the cost() method when stacking
k decorators on a core object using the Decorator Pattern with dynamic behavior injection?