Pergunta de entrevista da empresa Amazon

Array Manipulations, problems involving subsets.