Six boxes- A, B, C, D, E and F are kept in a stack one above the other but not necessarily in the same order. The bottommost box is 1 above that 2 and so on.
Two boxes are kept between Box A and box D.
Box C is kept immediately above box B.
Three boxes are kept between box C and box E.
| Case 1 | Case 2 | Case 3 | Case 4 |
| Box | Box | Box | Box |
| A | C | D | C |
| C | B | C | B |
| B | A | B | D |
| D | | A | |
| E | | E |
| E | D | E | A |
At most three boxes are kept below box B.
Thus, Case 2 and Case 4 get cancelled.
| Case 1 | Case 3 |
| Box | Box |
| A | D |
| C | C |
| B | B |
| D | A |
| |
| E | E |
Now, only box F is remaining.
| Case 1 | Case 3 |
| Box | Box |
| A | D |
| C | C |
| B | B |
| D | A |
| F | F |
| E | E |
Five boxes are kept above box E.