Option (A) is correct.
Explanation:
Read the views.
- Top view: all 9 squares are covered, so there is at least 1 cube on each: at least 9 cubes.
- Front view: going left to right, the tallest stack in each column is 3, 1 and 2.
- Side view: going from front to back, the tallest stack in each row is 2, 3 and 1.
Start with one cube on every square (9 cubes). The views still need a stack of 3 somewhere in the left column and somewhere in the middle row: one stack of 3 where they cross does both, using 2 extra cubes. They also need a stack of 2 in the right column and in the front row: one stack of 2 where they cross does both, using 1 extra cube.
9+2+1=12
No view changes, and fewer is impossible: the 9 squares need 9 cubes, the stack of 3 needs 2 more and the stack of 2 needs 1 more (they cannot be the same stack). The least number is 12.
Why the other options are wrong
- (B) 14 is the greatest number: it puts on each square the tallest stack both views allow. The question asks for the least.
- (C) 9 cubes, one on each square, would give a front view and a side view only 1 cube high. The views need stacks of 3 and 2.
- (D) 6 adds up the front-view heights 3+1+2. That counts only one stack in each column, but the top view shows all 9 squares covered.