Mastercard interview question

Print all the subsets of given integer array.