Change solution of subsets to a shorter version, use a list constructor that takes a collection as parameter