EXL Service interview question

When do you use random forest vs xgboost?