Indegene interview question

Diff in bagging & boosting, cumulative sum in sql,