BrainRocket interview question

Describe the React reconciliation algorithm