W3 Engineers interview question

Shadow DOM vs Virtual DOM