update solution for Subsets