LinkedIn Interview Question

Compute union, intersection