You don't need to figure out what $f$ is because frankly speaking the given condition does not guarantee a unique $f$. You can start by taking logs and note that this gives us $$\lim_{x\to 0}\frac{\log(1+x+f(x)/x)}{x}=3$$ which means that $x+f(x) /x\to 0$ and therefore we can rewrite the above limit as $$\lim_{x\to 0}\frac{\log(1+x+f(x)/x)}{x+f(x)/x}\cdot\frac{x+f(x)/x}{x}=3$$ The limit of first fraction is $1$ and hence the limit of second fraction is $3$. It follows that $f(x) /x^2\to 2$.
Next consider the fraction $$\frac{\log(1+f(x)/x)}{x}$$ which can be rewritten as $$\frac{\log(1+f(x)/x)}{f(x)/x}\cdot\frac{f(x)}{x^2}\to 1\cdot 2=2$$ and therefore the desired limit is $e^2$.