In this question , it is given that, a box is in the shape of a cube . The box has edge lengths of 5 inches.
So first we have to find the volume of the box, and for that we use the formula of volume of cube which is

Substituting the value of side length , we will get

So to fill the box, 125 unit cubes are needed .