So we know (given) that there is a $Q$ such that $QWQ^{-1}$ is triangular. The first step is to introduce $Q$
$$\det(I - \lambda W) = \det( Q^{-1}Q(I-\lambda W))$$ Second let's use the property $\det(AB) = \det(BA)$ where $A = Q^{-1}$ and $B = Q(I-\lambda W)$ hence
$$\det(I - \lambda W) = \det(Q(I-\lambda W) Q^{-1})$$ Third, expand the above $$\det(I - \lambda W) = \det(QQ^{-1}-\lambda Q W Q^{-1} )$$ Notice that $QQ^{-1} = I$ again so $$\det(I - \lambda W) = \det(I-\lambda Q W Q^{-1} )$$ Fifth denote our triangular matrix $QWQ^{-1} = T$ hence $$\det(I - \lambda W) = \det(I-\lambda T )$$ Notice that $I - \lambda T$ is also **triangular** with diagonal elements $1 - \lambda v_1$, where $v_k$ appear on the diagonal entries of $T$. Using the fact that **the determinant of a triangular matrix is nothing other than the product of it's diagonal entries** , then $$\det(I - \lambda W) =(1 - \lambda v_1)\ldots(1-\lambda v_n)$$