The correct answer is D. No correction required.
The teacher asked, "Why are you late?" is a grammatically correct sentence. The verb "are" agrees with the subject "you". The question is asking for the reason why the student is late.
Option A, "Why you were late", is not grammatically correct. The verb "were" does not agree with the subject "you". The sentence should be "Why were you late?"
Option B, "Why late you are", is not grammatically correct. The word order is incorrect. The sentence should be "Why are you late?"
Option C, "Why late you are?", is not grammatically correct. The word order is incorrect. The sentence should be "Why are you late?"