My attempt
Proof. Suppose $A$ is a triangular $3\times3$ matrix. Then so is $A-\lambda_j\operatorname{Id}$ for $1\le j\le3,$ which means that $\det(A-\lambda_j\operatorname{Id})$ is the product of its diagonal entries. Thus $p(\lambda)=\prod(A_{ii}-\lambda),$ and hence the roots of the characteristic polynomial are the diagonal entries $A_{11}$, $A_{22}$, $A_{33}$, as claimed.
I'm not sure whether my approach here is correct. My understanding is that the problem asks us to show that every triangular $3\times3$ matrix $A$ satisfies the determinant formula whereby the lambdas are the roots of the characteristic polynomial and hence eigenvalues of $A$?