To verifying if two functions are inverses of each other is a simple two-step process.
Step 1:
Plug g(x) into f(x) which is f{g(x)} then simplify.
If f{g(x)} = x
Step 2: g[f(x)] = x
Final answer
Since f{g(x)} = g{f(x)}, YES the functions are inverse of each other.
Option B is the answer