Assume that f is entire, $f(0)=1$, and $\int_{0}^{2\pi} \lvert f(e^{i\theta}) \rvert d\theta = 2 \pi$. Prove that f is constant.
Now, I tried to bound the integral by $2\pi$ times the max of $\lvert f(e^{i\theta}) \rvert$ where $0 \leq \theta \leq 2\pi$ and then using the max-modulus principle tired to get a contradiction but we get an obvious inequality. Next, I tried to make use of the power series of f to evaluate the integral and use the properties of integral, but then we again get obvious inequalities. Any hint would be helpful.