The correct option is A NH3
The rate of diffusion is inversely proportional to the square root of the molar mass.
The molar masses of ammonia and sulphur dioxide are 17 g/mol and 64 g/mol respectively.
Since, the molar mass of ammonia is lower, its rate of diffusion will be higher.
Hence, ammonia will be detected first in the middle of the laboratory.