Altimetrik interview question

Difference between union and intersection in typescript?