This question already has an answer here:
Is it possible to construct a matrix with non-zero off-diagonal entries whose eigenvalues are nonetheless equal to its diagonal entries?
EDIT: @ajotataxe pointed out that this holds for triangular matrices. My follow up is - is the converse true? If the Eigen values are the diagonals, does it have to be triangular?