using System.Collections.Generic;
public static void Main()
HashSet<int> numbers1 = new HashSet<int>();
HashSet<int> numbers2 = new HashSet<int>();
var sets = new HashSet<HashSet<int>>();
var product = CartesianProduct(sets);
private static HashSet<HashSet<int>> CartesianProduct(HashSet<HashSet<int>> sets) {