What I did is: $f$ has zero at $0$, so $f(z)=zg(z)$.
Using the data, we can say $\frac{g(z)}{e^z}$ is constant.
So, $f(z)=Cze^z$. Is that correct?
What I did is: $f$ has zero at $0$, so $f(z)=zg(z)$.
Using the data, we can say $\frac{g(z)}{e^z}$ is constant.
So, $f(z)=Cze^z$. Is that correct?
Fleshing out the steps: substituting $z=0$ gives $|f(0)|\le0$ so $f(0)=0$; since $f$ is entire (Taylor series expansion valid over all complex plane), $f(z)=zg(z)$ for another entire function $g$. Then for $z\ne0$: $$|f(z)|=|z||g(z)|\le|z||e^z|$$ $$|g(z)/e^z|=|g(z)e^{-z}|\le1$$ and $g(z)/e^z$ is entire bounded, so constant by Liouville's theorem. Hence $f(z)=cze^z$; the original condition forces $|c|\le1$.