Combination Sum

DFS is the solution for these two problems. Be careful about out of
range condition.