Revolut interview question

7 day moving average SQL problem