问题

I was about to give up my effort to solve a problem __________ a good idea struck me
A:when
B:while
C:until
D:before
B:while
C:until
D:before
正确答案是: