ByteDance interview question

Combination sum 2 on leetcode