Twilio Interview Question

knapsack problem with stocks