Pregunta de entrevista de Google

Two leetcode questions that solve variations the knapsack problems