ByteDance Interview Question

Finding the subset of a specific sum given an array