MetLife interview question

Flatten an array using JavaScript, Virtual DOM , and Reconciliation in React