I’m having problems with a recursive function that do the following:

The function receives an array of numbers (N) and size.

The output is 1 if it possible to find cells that their sum equals to size, else it returns 0.

For example:

Array= [5 7 2 4 12 8], size=19

The function will print: 7, 12 or 5,2,4,8, what ever comes up first.

Thanks,