Which of these sentences uses commas correctly?
A.
Mary asked "What time do we need to be there?"
B.
Mary asked, what time do we need to be there?
C.
Mary asked what time do we need to be there?
D.
Mary asked, "What time do we need to be there?"