ByteDance interview question

Finding the subset of a specific sum given an array