Answer:
The correct option is B.
Explanation:
If a function
defined as

then the inverse of function f(x) is

It means the graph of a function and its inverse function are symmetrical about the line y=x.
In the given graph draw a line y=x.
From the below graph it is clear that f and g are symmetrical about the line y=x. So, the function g is the inverse function for function f.
Therefore the correct option is B.