Imagine a large cube made of 10 small cubes in height, width and depth (i.e. 10x10x10)...
The question continued...
Assume you can see the cube from all the possible sides - how many small cubes (not sides of the small cubes) can you see ?
And the answer was:
I calculated the area of the large cube (10x10*6=600) and then subtracted the triple-counting at the corners (8 corners *2 = 16) and double-counting on the edges (12 edges * 8 = 96), which gives an answer of 488.
The easy answer is to think of it in terms of volume, i.e. total volume is 10&3 =1000 and you strip out the middle of the cube which is 8&3=512, which gives you the same answer of 488.
Additional information
The candidate got the job.