X Interview Question

subset-sum problem.