Samsung SDS Interview Question

How is shadow DOM different from virtual DOM?