Imagine a cubic array made up of an $n\times n\times n$ arrangement of unit cubes: the cubic array is n cubes wide, n cubes high and n cubes deep. A special case is a $3\times3\times3$ Rubik’s cube, which you may be familiar with. How many unit cubes are there on the surface of the $n\times n\times n$ cubic array?
As far as I can see there are 27 unit cubes in a $n\times n\times n$ rubik cube. But the answer says something different. There are total $6n^2$ squares are present in $n\times n\times n$ cube. But after that I cant proceed.
Please help :)