Hint: Chebyshev polynomials is right, but you don't need to know what they are to figure this one out. All you really need to know is that $p(\cos \theta) = \cos(7 \theta) + 1$ is a $7$th degree polynomial on $\cos \theta$, and one of the roots will be attained at
$\cos \theta = \cos (\pi/7)$.
This polynomial has other roots. In fact, the roots of this polynomial are
$$
\cos (\pi/7), \cos(3 \pi/7), \cos(5 \pi/7), \cos \pi, \cos(9\pi/7), \cos(11 \pi/7), \cos(13 \pi/7)
$$
In particular, if we take $q$ to be the monic polynomial that's a multiple of $p$, we can write
$$
q(x) = (x + 1)\left[(x - \cos (\pi/7))(x - \cos (3\pi/7))(x - \cos (5\pi/7))\right]^2
$$
From this polynomial, we can factor the polynomial
$$
P(x) = (x - \cos (\pi/7))(x - \cos (3\pi/7))(x - \cos (5\pi/7))
$$
From here, we simply need to "plug in" $x = \pm 1$.
If we use complex numbers, then letting $z = e^{\pi i/7}$, we can evaluate
$$
P(1) = \Re [(1 - z)(1 - z^2)(1 - z^3)]=\\
\Re[1 - z - z^2 - z^3 + z^3 + z^4 + z^5 - z^6]\\
P(-1) = -\Re [(1 + z)(1 + z^2)(1 + z^3)]=\\
\Re[1 + z + z^2 + 2z^3 + z^4 + z^5 + z^6]=\\
\Re[z^3]
$$