Jam bottles are on the top row (1st).
Packets of chips are below the jam bottles.
Biscuits are below the packets of chips and above the chocolates.
Chocolates are below the biscuits.
Peppermints are below the chocolates.
Cakes are at the bottom (6th).
Now, based on this:
Therefore, the bottles of peppermints are on the 5th row from the top.
So, the correct option is (D): 5th