solution to Subsets