Texas Instruments interview question

Implementation of moving average filter