Create Subsets II.java

count the number of duplicate elements and build the subset based on the number of duplicates. In this way, you could remove the duplicates in the result.