Pergunta de entrevista da empresa Deutsche Bank

how to improve the performance of rolling average?