Typical solution of the final exam in Time Series Analysis module.