Sum It Up(Backtracking)

What’s wrong with this code ?

You are not checking for unique sets