Seven boxes- A, B, C, D, E, F and G are kept in a stack one above the other but not necessarily in the same order. The bottommost position is 1 above that 2 and so on.
At most two boxes are kept above box D.
Box E is kept immediately above box D.
| Case 1 | Case 2 |
Position | Box | Box |
7 | E | |
6 | D | E |
5 | | D |
4 | | |
3 | | |
2 | | |
1 | | |
As many boxes are kept above box E as below box C.
| Case 1 | Case 2 |
Position | Box | Box |
7 | E | |
6 | D | E |
5 | | D |
4 | | |
3 | | |
2 | | C |
1 | C | |
Two boxes are kept between box C and box G.
Thus, Case 2 gets cancelled.
| Case 1 |
Position | Box |
7 | E |
6 | D |
5 | |
4 | G |
3 | |
2 | |
1 | C |
Only one box is kept between box G and box F.
Box A is kept below box B.
Position | Box |
7 | E |
6 | D |
5 | B |
4 | G |
3 | A |
2 | F |
1 | C |
This is the final arrangement.
Position | Box | |
7 | E | A |
6 | D | B |
5 | B | C |
4 | G | D |
3 | A | E |
2 | F | F |
1 | C | G |
Only one box i.e. F will remain in the same position after rearrangement.