AlgoUniversity interview question

Standard 0 / 1 Knapsack Problem