Adyen Interview Question

Solve a knapsack problem with finite and prioritized elements