need improve

Given two integers n and k, return all possible combinations of k
numbers out of 1 ... n
this is not a best solution but a universal solution for combination
problems.
does not work
BFS