If we differentiate the function, we get $$f'(x)=1+\cos(x)$$ Hence, $f'(x)$ varies from $0$ to $2$.
So, I think it is a one to one function because the function is never decreasing, and the function never becomes consecutively constant for more than one point.
But how do I prove that $f(x)$ is never strictly $0$ in an interval?