You are given a set of product weights to box up for shipment, for example: 15, 11, 8, 7, 6, 5. The first weight in the sequence always corresponds to the capacity of the box.
Create a method that when passed any sequence in this way, checks all the numbers to find if any add up to the capacity of the box. If a solution is found, print the numbers that add up to the target weight and then continue checking for other possible solutions.
This must work for any sequence given, so I expect you to test this and make sure it does.