How is the underlined pronoun used in the sentence?

The person who answered the phone was I.

A.subject

B.subject complement

C.object of a preposition

D.direct object