Modified Knapsack

Company: Hackerearth_6april

Difficulty: medium