单项选择题

It was when Tom got to the office ____ the telephone rang.

A.Which
B.that
C.how
D.what