Well,
We know that microwaves and infrared waves (C and D) have longer wavelengths than visible light.
We know that UV light will give you a sunburn if you get too much of it.
Therefore, UV light has more energy, and thus a shorter wavelength than visible light.
Option B is the correct answer.