Pregunta de entrevista de C3 AI

Dynamic programming challenge similar to knapsack problem