Google Interview Question

One question I had was to code a function to compute a rolling mean. We explored different possible designs and implementations.