Amazon Interview Question

One question was a subsets / permutation problem and the other was self-diminishing value problem.