Fill Box with cube (generator) help

hello everyone! i need help to generate cube inside box
for now im trying to achieve filling the box with cube at maximum without overlap.
help would be really appreciated :slight_smile: