Domanda di colloquio di Robinhood

Basic programming questions, one was knapsack algorithm.