Here's a problem to solve: The speed of a sound wave varies as it travels through different substances. Which factor will most affect the speed of a sound wave?

Among the 4 following options, which is the correct answer?

- A: the frequency of the wave
 
- B: the wavelength of the wave
 
- C: the source that created the sound
 
- D: the distance between molecules in the medium
 