Samsung SDS interview question

How is shadow DOM different from virtual DOM?