rewrite leetcode subsetii