Generate all combinations of choosing k items from n items.
Total number of items.
Number of items to choose.
Array of combinations, where each combination is an array of indices.
Generate all combinations of choosing k items from n items.