Generating subsets in lexicographical ordering

Sign in to test your solution.