Pibit.ai interview question

Difference between bagging and boosting