Sainsbury’s Interview Question

how does gradient boosting work