contestada

Let $z$ be a complex number such that $z^5 = 1$ and $z \neq 1.$ Compute
\[z + \frac{1}{z} + z^2 + \frac{1}{z^2}.\]