Although I suspect your professor/the author wanted to use part of the already answered question (here) and apply it to get the determinant for this one, here is another way using diagonalization:
Verify that $A = PDP^{-1}$ where
$$D = \left(\begin{matrix}-1 & 0 & \cdots & 0 & 0\\
0 & -1 & \cdots & 0 & 0\\ \vdots & \vdots & \ddots & 0 & 0\\ 0 & 0 & \cdots & -1 & 0\\0 & 0 & \cdots & 0 & n-1\end{matrix}\right)$$
and
$$P = \left(\begin{matrix}-1 & -1 & \cdots & -1 & 1\\
0 & 0 & \cdots & 1 & 1\\ \vdots & \vdots & \cdot^{\large \cdot^{\large \cdot}} & 0 & 1\\ 0 & 1 & \cdots & 0 & 1\\1 & 0 & \cdots & 0 & 1\end{matrix}\right)$$
Note you can just find the eigenvalues and their multiplicities, and dont actually have to compute it. In doing this you will find $\lambda =-1$ has geometric multiplicity $n-1$, and $\lambda=n-1$ has multiplicity $1$. But as this is a task in of itself, for your consideration here is $P^{-1}$
$$P^{-1} = \dfrac{1}{n}\left(\begin{matrix}-1 & -1 & \cdots & -1 & n-1\\
-1 & -1 & \cdots & n-1 & -1\\ \vdots & \vdots & \cdot^{\large \cdot^{\large \cdot}} & -1 & -1\\ -1 & n-1 & \cdots & -1 & -1\\1 & 1 & \cdots & 1 & 1\end{matrix}\right)$$
Once you are convinced of this, we have
$$\det(A) = \det(PDP^{-1}) = \det(D) = (-1)^{n-1}(n-1) $$
which is the same as $(-1)^n(1-n)$.