The speed of sound at any given temperature is given by:
We know that in this case the temperature is 20°, then the speed of sound is:
Now, the distance is given by:
Plugging the speed we found for the sound and the time it takes Karen to hear the thunderclap we have:
Therefore, the lighting stroke 1029.64 m away