Look at the cake one layer at a time. Each layer has 16 pieces: 4 corner pieces, 8 edge pieces (2 in the middle of each of the 4 edges) and 4 inside pieces.
Top layer (iced on top and on the sides):
- 4 corners: top + 2 sides = 3 iced faces
- 8 edge pieces: top + 1 side = 2 iced faces
- 4 inside pieces: top only = 1 iced face
Each of the 3 lower layers (no top icing; the bottom is not iced):
- 4 corners: 2 sides = 2 iced faces
- 8 edge pieces: 1 side = 1 iced face
- 4 inside pieces: no iced face
(i) Exactly 3 faces: the 4 top corners. 4 pieces.
(ii) Exactly 2 faces: 8 top edge pieces + 4 corners in each of the 3 lower layers:
8+3×4=8+12=20
20 pieces.
(iii) No face: 4 inside pieces in each of the 3 lower layers:
3×4=12
12 pieces.
Exactly 1 face: 4 top inside pieces + 8 edge pieces in each lower layer: 4+3×8=4+24=28.
Check: 4+20+28+12=64, all the pieces.