How is the underlined pronoun used in the sentence?

Who were the winners of the science fair?

Aobject of a preposition
Bdirect object
Csubject