Amazon Interview Question

Find average based on rolling window