[LC] Added solution to subsets 2.