4. (25%) Let $A$ be an $3 \times 3$ matrix $A = \begin{pmatrix} -1 & 1 & 0 \\ 1 & -2 & 1 \\ 0 & 1 & -1 \end{pmatrix}$. Answer the following questions in detail.

(a) Find all eigenvalues of $A$.