Solve 0/1 knapsack capacity 10 with given items

Given a list of [weight, value] item pairs, return the maximum total value obtainable by selecting each item at most once with knapsack capacity 10.

Examples
Input: []
Output: 0
Hints

Solve 0/1 knapsack capacity 10 with given items

Given a list of [weight, value] item pairs, return the maximum total value obtainable by selecting each item at most once with knapsack capacity 10.