HAP Capital interview question

How would you implement rolling average?