Теория:

Study some information about negative sentences and questions with 'had to'.
 
Для построения отрицательного предложения в прошедшем времени с модальным глаголом 'had to' необходимо использовать следующую структуру предложения:
subject \(+\) did not (didn't) have to \(+\) Verb in the \(1\)st form (without 'to') \(+\) other parts of the sentence.
I did not (didn't) have to work late yesterday.
  
office-4282057_640.png
Рис. \(1\). Working late  
 
Для построения вопросительных предложений необходимо знать следующий порядок слов.
  
General question
Did \(+\) subject \(+\) have to \(+\) Verb in the \(1\)st form (without 'to') \(+\) other parts of the sentence?
Did Sally have to get up early last time?
  
get up.jpg
Рис. \(2\). Getting up  
 
Special question
Question word (when, how, what...) \(+\) did \(+\) subject \(+\) have to \(+\) Verb in the \(1\)st form (without 'to') \(+\) other parts of the sentence?
What did she have to find yesterday?
  
When did Mike have to buy a new car?
Источники:
Рис. 1. Working late, 2019, https://pixabay.com/images/id-4282057/ Pixabay License CC0 Free for commercial use No attribution required
Рис. 2. Getting up, 2020, https://pixabay.com/images/id-5207235/ Pixabay License CC0 Free for commercial use No attribution required