A.whom it was the function
B.of whom the function was
C.whose function it was
D.whose were the function