RapiPay Fintech interview question

How does an XgBoost model work?