JumpCrew interview question

How to do a moving average