Which sentence is written correctly?



A: Xavier then asked, “If I liked the new music teacher?”

B: Xavier then asked if I liked the new music teacher.

C: Xavier then asked “if I liked the new music teacher.”

D: Xavier then asked if I liked the new music teacher?

A: Xavier then asked, “If I liked the new music teacher?”