Generating subsets according to cardinality and lexicographical ordering

Sign in to test your solution.