NVIDIA interview question

Moving windows sum