How does the Gradient Boosting algorithm work?

How does the Gradient Boosting algorithm work?

Gradient Boosting is an supervised machine learning algorithm used for classification and regression problems. It is an ensemble technique which uses multiple weak learners to produce a strong model for regression and classification.

ref:https://medium.com/mlreview/gradient-boosting-from-scratch-1e317ae4587d
ref:https://medium.com/analytics-vidhya/introduction-to-the-gradient-boosting-algorithm-c25c653f826b