Practice Problem

Combinations

Difficulty: Medium

Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. Return the answer in any order.