Whatfix Interview Question

1 - Union and Intersection question