KPMG interview question

How does random forest algorithm work