You can choose x in n ways and y in n ways.
Let y>x,
Number of multiples of x within 1 to n is = \lfloor\frac{n}{x}\rfloor
Hence probability that x divides y = \frac{\lfloor\frac{n}{x}\rfloor}{n^2}
x ranges from 1 to n,
Therefore the required probability =
.\qquad\frac{1}{n^2}\sum\lfloor\frac{n}{x}\rfloor
So I think the answer should be (B).