How is the underlined pronoun used in the sentence?

The person who answered the phone was I.

A.
subject

B.
subject complement

C.
direct object

D.
object of a preposition
the underlined pronoun is i