Amazon Interview Question

1- A greedy algorithm question about packaging