Let\'s say I have a list z = [1,2,3] and I want to find out all combinations of list such that their sum is less than or equal 4. So the answer I am looking for is
An