Just after solving one problem, I was faced with another.
A.Scarcely had I solved one problem when I was faced with another.
B.Hardly had I solved one problem when I was faced with another.
C.No sooner had I solved one problem than I was faced with another.
D.All are correct.