Google Interview Question

based on recursion to calculate the subsets which would give the required sum