The Doppler effect is the right concept to solve this problem. The Doppler effect is understood as the change in apparent frequency of a wave produced by the relative movement of the source with respect to its observer. Mathematically it can be described as,
[tex]f = (1-\frac{v_0}{v})f_0[/tex]
Here,
[tex]f_0[/tex] = Frequency of the sound from the Whistle
f = Frequency of sound heard
v = Speed of the sound in the Air
Replacing we have that
[tex]1- \frac{v_0}{343} = \frac{20kHz}{21kHz}[/tex]
[tex]\frac{v_0}{343} = 1-\frac{20}{21}[/tex]
[tex]\frac{v_0}{343} = \frac{1}{21}[/tex]
[tex]v_0 = \frac{1}{21}(343)[/tex]
[tex]v_0 = 16.33m/s[/tex]
Therefore the minimum speed to know if the whistle is working is 16.33m/s