EXL Service Interview Question

When do you use random forest vs xgboost?