C3 AI interview question

What is the difference between boosting and bagging?