MetLife Interview Question

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