Amazon interview question

1- A greedy algorithm question about packaging