Print all combinations | Set-1
Given two numbers n and k, you have to print all possible combinations of k numbers from 1...n. Examples: Input: n = 3, k = 2Output: [[1, 2], [1, 3], [2, 3]]Explanation: There are 3 ways to choose 2 elements from 3. Input: n = 4, k = 1Output: [[1], [2], [3], [4]]Explanation: There are 4 ways to choo