Sun King Interview Question

array subset target sum problem in leetcode