Pregunta de entrevista de Google

Calculate moving average for given array of ints.