Option (a) is incorrect as the reporting verb 'say' is incorrect here. 'Said to' or 'says to' should have been used here. 'To' needs to be added to denote whom the principal told something ('me'). Option (b) is incorrect for the same reason.
Option (c) is incorrect as the objective pronoun 'me' should have been used in place of subjective pronoun 'I' to denote who was being told something.
Option (d) represents the correct sentence in direct speech.
Hence, option (d) is the answer.
Note: Objective Pronouns: The pronouns me, you, us, him, her, it, and them are called objective pronouns because they act as the objects of verbs and prepositions: Anjali drove us home.
Subjective Pronouns: The pronouns I, you, we, he, she, it, and they are known as subjective pronouns because they act as the subjects of verbs: We went to the party.