单项选择题

It was not until she arrived in class ______ realized she had forgotten her book.

A.and she
B.when she
C.she
D.that she