Mastercard Interview Question

Print all the subsets of given integer array.