Combinations

Return all combinations of k numbers from 1..n.

Examples
Input: [4,2]
Output: [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
Hints

Combinations

Return all combinations of k numbers from 1..n.