Subset sum easy125

https://ide.codingblocks.com/s/53905
not getting the correct answer

Hi Aastha, you’re passing 0 as sum. The first if condition of the function is if(sum==0) return true;.
The function will return true for the first iteration itself, so you’ll always get ‘Yes’. Also, you cannot write two return statements simultaneously as you have done in line number 13 and 14. The code will never reach the second return statement.
Think of the logic again.