Question d’entretien chez Google

Calculate moving average for given array of ints.