The correct option is D No sooner had she started writing than guests arrived.
If the second event occurs immediately after the first, no sooner...than is used to express such situations. In such a structure, no sooner introduces the event that occurred first. No sooner is followed with the past tense. Option D is correct as no sooner is followed by 'had' and 'than' is used. Options B and C are grammatically wrong.