Question d’entretien chez Mastercard

Print all the subsets of given integer array.