Citadel interview question

Implement function to calculate moving average for a Python list.