Generating k-element subsets in lexicographic ordering

Sign in to test your solution.