By finding the appropriate Laurent series, evaluate the integral where C is the unit circle, traversed once in the positive direction.
$$\int_{C} (z^3 - e^\frac{1}{z}) \cos \left(\frac{1}{z}\right)dz$$
Unsure what the Laurent Series is for the complex function.
The integrand $f(z):=(z^3 - e^{1/z}) \cos (1/z)$ has "only" an essential singularity at $z=0$ (which is inside the unit circle). Hence, by the Residue Theorem, $$\int_{|z|=1} f(z)dz=2\pi i\,\mbox{Res}(f,0)=2\pi i a_{-1}$$ where $a_{-1}$ is the coefficient of $1/z$ in the Laurent expansion of $f$ in a neighbourhood of $z=0$.
In order to find $a_{-1}$ recall that $$e^{1/z}=1+\frac{1}{z}+O(1/z^2)\quad \mbox{and}\quad \cos(1/z)=1-\frac{1}{2z^2}+\frac{1}{24z^4}+O(1/z^6).$$ Can you take it from here?