solve the subsets problem.