A it is imo....
The question says, "when the source of a sound is in motion relative to the observer". So, C, D, E can be eliminated.
After they pass each other, the trains will move away from each other. Hence B, can be eliminated.
That leaves us with A.