Hackerrank Python Average Method Forecasting Models