He worked hard because he didn't wish to fail. It is a..... sentence.

A ) Complex ✅

B ) Simple

C ) Interrogative

D ) Compound