if you're asked to graph a function and its inverse, all you have to do is graph the function and then switch all x and y values in each point to graph the inverse.
Just look at all those values switching places from the f(x) function to its inverse g(x) (and back again), reflected over the line y = x.
for example,
From the lines provided, only the one in option D