A The teacher asked me did I submit my assignment before the deadline.
B The teacher said to me if I submitted your assignment before the deadline.
C The teacher asked me had I submitted my assignment before the deadline
D The teacher asked me if I had submitted my assignment before the deadline.