A theorem says that if $f$ is holomorphic in simply connected open set and $\gamma$ is a closed curve in that set, then $\displaystyle \int_\gamma f(z)\,dz=0.$ That takes care of the case where $\gamma$ does not wind around the number $1$.
Now suppose it winds once around $1$ in the same direction in which $|z|=4$ winds around that point -- they both run counterclockwise. Then look at two curves: Let $\alpha$ be a curve that includes some arc $\gamma_1$ of $\gamma,$ then goes along a straight path $\delta_1$ (not passing through $1$) from the end point of $\gamma_1$ to a point on $|z|=4,$ then goes halfway around the circle $|z|=4$ in the clockwise direction, then returns to the starting point of $\gamma_1$ along a straight path $\delta_2$. Let $\beta$ be a curve that follows the complementary arc $\gamma_2$ of $\gamma$, running from the starting point of $\delta_1$ along $\gamma$ to the end point of $\delta_2$, then follows $-\delta_2$ (i.e. $\delta_2$ in the direction opposite the direction that is included in the path $\alpha$), then continues along the circle $|z|=4$ in the clockwise direction to the end point of $\delta_1$, then follows $-\delta_1$ back to the starting point of $\gamma_2$.
Draw the picture and see if you can figure out why
$$
\int_\alpha f(z)\,dz=0 \text{ and } \int_\beta f(z)\,dz = 0.
$$
Then try to figure out why that, plus what is given, implies $\displaystyle\int_\gamma f(z)\,dz=0.$
Then try to figure out what to do with other curves, whose winding number around $1$ is something other than $0$ or $1.$