Speed of sound depends upon
Source
Density of water
Density of air
Density of medium
Hence, the correct answer is (D).