Atlassian Interview Question

Solve a variant of the Knapsack problem