Is there any optimal way to get all union of n sets?
This is what I have done, but it is very slow for a large number of sets:
public static void main(Str