Nutanix interview question

DP 0/1 knapsack