Sun King interview question

array subset target sum problem in leetcode