A verb is used to express an occurrence, action, or state. It is the grammatical center of the predicate in a sentence.
An auxiliary verb is a verb which is used in the formation of tenses, moods, tones, etc.
Option B is correct as was indicates the use of didn't have to.
The other options are wrong as no other tense can be used here.
The correct answer is B) didn't have to.