help [PAYING UP]

hi… i am not getting any logic for this problem

plz plz help… i have tried it several times
problem in applying bitwise operators

if there is any other approach, for solving this?

plz help

I tried your submission for test cases from problem statement and it returned strange results -

it’s a simple subset sum implementation

Check this out for more help: