The correct option is B. The temperature increases in the stratosphere because ozone absorbs ultraviolet radiation, and in the thermosphere because of direct exposure to the sun. As altitude increases more ozone is formed and more solar radiation heats molecules, which results in increased temperature in both the stratosphere and the termosphere.