Amazon interview question

Box packing algorithm question, complex