Hydrogen is a combustible gas but it does not support the combustion process. When the candle is brought near the mouth of a jar containing Hydrogen with the help of Oxygen in the atmosphere. When pushing the candle inside the jar oxygen supply gets cut off hence the fire gets extinguished.