Correct answer: g(x) is a constant function
The factor (e^(1/x)-e^(-1/x))/(e^(1/x)+e^(-1/x)) = tanh(1/x) tends to +1 as x->0+ and -1 as x->0-. So the limit of f exists only if g(0)=0. If g is a (non-zero) constant, the left and right limits are -g(0) and +g(0), which differ, so the limit fails to exist. For g(x)=x, x^2, or x*h(x) we have g(0)=0 and the limit exists.