As the title says
Prove $f(z)=c$ when $\operatorname{Re}(f)$ has an upper bound, given that $f$ is analytic
I am just getting introduced on complex analysis, and I found proving that $f(z)=c$ when $f'(z)=0$ (some previous exercise) relatively easy, but this one looks very strange since $\operatorname{Re}(f)$ being upper bounded sounds very generic.
Any help will be appreciated.