Answer:
512 cubes.
Explanation:
We know that the volume of a cube is

Where
is volume and
is side.
If we have 10 little squares on each side, the volume is


If we peeled of the outer layer, that means 10-2=8, so the total number of cubes reaming is represented by the reduced volume

Therefore, we would end up with 512 cubes.