Is my answer correct, it has to be in past simple tense please help

Answer:
It's who did you invite to your dinner party
Explanation:
Change does to did
Answer:
It's not quite right!
Explanation:
It should be - Who did you invite to your dinner party?