Pregunta de entrevista de KCG

Solve the moving average problem