Google Interview Question

Implement a moving average