Sue: You were driving too fast.
The two ways of relating what a person has said are 1)direct and 2)indirect (reported speech).In direct speech, the original speaker's exact words are repeated. In indirect/reported speech, the exact meaning is expressed but not necessarily using the original speaker's exact words. Pronouns and possessive adjectives usually change from first or second person to the third person except when the speaker is reporting his own words. Sometimes a noun can be inserted to avoid doubt.
When we turn direct questions and exclamations into indirect speech, they are converted to affirmative statement .( ? and ! is not used).
Option D is correct as when we convert the given direct question to indirect speech which doesn't start with a question word, then if/whether is used, the present tense is changed to simple past tense (wanted) and you is changed to she. The dialogues are connected using to which,sorry is replaced by the phrase ' apologised for the same.', and is is changed to was.
The other options are wrong as I , is and was she can't be used.
The correct answer is D) Sue told Sam that he had been driving too fast to which Sam replied that it was true and apologised for the same.