Yammer interview question

A recursive backtracking problem to find all combinations.