Amazon interview question

Array Manipulations, problems involving subsets.