Which of the following has correct punctuation and capitalization?

A) She asked, “What time is it”?
B) he asked “What time is it?”
C) She asked, “what time is it?”
D) She asked, “What time is it?”