This problem was first introduced by the mathematician Bachet in 1612.
The master has said that the centre room must be kept clear and that there should be 21 bottles in each full row and column.