Kids Ralph Lauren Children Tee-12-28-213319 4m

What you need is to maintain stack yourself. In stack (or stacks) you need to keep function call parameters, Kids Ralph Lauren Children Tee, and local variable (you also need to reduce their count). It’s not very clear from your code whether in your knapsack statement allowed to take multiple items of same type.