Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort the boxes in ascending order, try to process the box with the smallest height first.
Solve with full IDE support and test cases