Upper triangular matrix/Basis/Invariant subspaces/Exercise

Let be a linear mapping on a -vector space . Let be a basis of , such that is described, with respect to this basis, by an upper triangular matrix. Show that the linear subspaces

are -invariant for every .