There are two different ways you can do this, I have provided both below.
Answer: You can switch all the x and y coordinate values.
For example, if you have (2, 1) you would graph (1, 2).
Another example, if you have (677, 83) you would graph (83, 677)
Answer: Flip the graph over the line of y = x
I have attached an example from lumenlearning.com.