Whenever you're ready, walk me through how you'd approach this.
You are designing a recommendation system for a digital product that personalizes items based on user behavior. The system should learn from clicks, dwell time, saves, and purchases, then adapt as user interests change.
How would you design an algorithm for a recommendation system based on user behavior?