HAP Capital Interview Question

How would you implement rolling average?