Subset Sum Easy giving wrong answer in test cases

This is my code for Subset Sum Easy problem:

this code is passing all custom test cases. Please help!