How to solve union of set questions.