Cambium Networks interview question

How did you solve the subset problem?