The other day I came ----a friend when I was walking

The other day I came ----a friend when I was walking aimlessly on the street.

A.to

B.up

C.upon

D.in

正确答案是C