Yammer Interview Question

A recursive backtracking problem to find all combinations.