Oracle Interview Question

Subset Sum equals k(from leetcode)