Capgemini Interview Question

Explain bagging and boosting and why it is being used