We can see in this image that the triangle A'B'C' is a reflection of the triangle ABC over the line y = x (dashed red line, where each point has the same x and y coordinates).
In order to find the coordinates of the reflected points over this line, we just need to switch the x and y coordinates of the points: