Forterra Interview Question

Open up a notepad file and write a function for a moving average with just the last value as an argument