He failed in the exams and only then _____ how much time he had wasted. 
#81700
A
he realized
B
did he realize
C
he had realized
D
had he realized