Subset Sum Easy

sample test case are working fine, but all test case are submitting are giving wrong answer on submitting.

Hello @vipin.kumar,

There is a logical error in your code:
As you are passing a[0] as sum and vidx as 1.
So, your sum will always contain the a[0].
Hence, causing wrong output for cases like:
1
4
10 9 -3 -6

Try to correct it.
Let me know if you face any difficulty.

Hope, this would help.
Give a like if you are satisfied.