As the steel rail is contrained from expansion, the expansion pressure causes stress in the steel rail.
Thermal stress depends upon coefficient of expansion $\alpha$ and rise of temperature $\Delta T$.
$\therefore$ 'Thermal stress, $\sigma \propto \alpha \Delta T$
$\Rightarrow \sigma=Y \cdot \alpha \cdot \Delta T$ (where, $Y=$ Young's modulus)
$\therefore \sigma =2 \times 10^{11} \times 11 \times 10^{-5} \times(40-25)$
$=3.3 \times 10^7 \,Pa$
