Since we are just looking for existence, this will do.
Assume $f(z)$ is a function on complex plane instead, and assume it have the form $f(z)=e^{cz}$ for some constant $c$. The condition $f''(z)\not=0$ simply means $c\not=0$, while the other condition give: $ce^{cz}=(e^{c}-1)e^{cz}$ which means we need to solve for $e^{c}-c-1=0$. Applying standard technique to reduce to: $-(c+1)e^{-(c+1)}=-\frac{1}{e}$ which allow us to use Lambert W-function to get $c=-1-W(-\frac{1}{e})$. Hence found the solution in complex number.
To reduce this back to real number just take the real part, so we get: $f(x)=e^{Re(c)x}\cos(Im(c)x)$ which satisfy all condition.