Sainsbury’s interview question

how does gradient boosting work