KPMG interview question

How RF works? how gbm is different from xgboost