Affirm interview question

Problem on knapsack/optimization programming for streaming data.