Given an array of non-negative integers and a target sum, determine if there exists a subset of the given array whose elements sum up to the target. Return all such subsets.
- An array of non-negative integers
nums. - An integer
target.
Input: nums = [3, 34, 4, 12, 5, 2], target = 9
Output: [[4, 5], [3, 4, 2]]