How is the underlined pronoun used in the subordinate clause?

Give (whomever) Coach chooses one of the new uniforms.

A.
object of a preposition

B.
direct object

C.
indirect object

D.
subject