问题

I heard that John was very hard to get along with, so I wonder _____ Sam got on so well with him.
A:how
B:when
C:that
D:what;
B:when
C:that
D:what;
正确答案是: