From the diagram we have a line with the following endpoints;

The rule for reflecting across the line

is such that the x-coordinates and the y-coordinates switch places.
This means, for the points identified above, after reflecting across the line y = x, the coordinates of the endpoints would now be such that x, moves to the place of y, and vice versa.
We now have;

ANSWER:

The second option is the correct answer