The second wave because it has the most frequencies. The larger the wave, the more frequencies it has.
It is true that the energy is directly proportional to the frequency for light waves. But for a general wave, the mean energy in a cycle is proportional is proportional to the square of its amplitude. So, if the only difference is amplitudes (heights), the one with greatest amplitude.