The correct option is C 12
Here n = 3.
Therefore, number of cubes with 3 sides painted red = Number of corner cubes = 8.
Number of cubes with 2 faces painted = (n−2)×12=(3−2)×12=12.
Number of cubes with 1 face painted = (n−2)2×6=(3−2)2×6=6.
Number of cubes with no face painted = (n−2)3=(3−2)3=1