Pregunta de entrevista de Amazon

Array Manipulations, problems involving subsets.