How to reflect the figure in photo across the y=x line

We need to reflect the figure across the y = x line. We know that for a reflection of a point across y = x, we have the property:
Now, for the vertices D, E and N of the triangle, we have the coordinates:
D = (-4, -2)
E = (-2, -3)
N = (-2, -5)
Using the property stated in the figure above, their coordinate reflections must be:
D' = (-2, -4)
E' = (-3, -2)
N' = (-5, -2)
The reflected figure is: