Which gas in atmosphere acts as a glass wall of a green house?

A ) oxygen

B ) Carbon dioxide ✅

C ) Sulphur dioxide

D ) hydrogen