Subset Sum Easy-getting Wrong ans

Code is giving correct output everytime but it shows wrong answer when I submit it.