Google interview question

Implement a moving average