[ Remark: The following question was asked yesterday, and obtained 3 votes. Unfortunately it has been deleted by the OP overnight without receiving any answers.]
Let $f:\mathbb C \to \mathbb R$ be a continuous real-valued function. Suppose for all $z \in \mathbb C$, we have $|f(z)|\leq1$. Show that
$$\left|\int_C f(z)\, dz\right|\leq4$$ where $C$ is the unit circle traversed counterclockwise.
I used this relationship but the smallest I can get is $2\pi$: $$\left|\int f(z)\, dz\right| \leq \int |f(z)|\, |dz| \leq \sup |f(z)|\cdot L = 2\pi\sup |f(z)| = 2\pi$$