Find all unique subsets of a given set using C++ STL
Given an array arr[] of integers of size N that might contain duplicates, the task is to find all possible unique subsets, using C++ STL. Note: Each subset should be sorted. Examples: Input: N = 3, arr[] = {2, 1, 2}Output:(), (1), (1 2), (1 2 2), (2), (2 2)Explanation: All possible subsets = (), (2), (1), (1, 2), (2), (2 2), (2 1), (2, 1, 2)After S