CVS Health interview question

How does random forest/ boosted trees work? and pretty basic ML stuffs