Consider the matrix

$$P=\begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{bmatrix}$$

The number of distinct eigenvalues

1. $0$
2. $1$
3. $2$
4. $3$

edited