Let $D \in M_p(\mathbb{K})$ be a diagonal matrix. Show that there exists a polynomial $Q \in \mathbb{C}[X]$ such that $Q(D) = E(D)$.