单项选择题

Not until she bought her ticket and turned to walk away______that she was a streetcar conductor.

A.had I realized
B.did I realize
C.I realized
D.I had realized