Pregunta de entrevista de Amazon

1- A greedy algorithm question about packaging