$$A=\left(\begin{array}{ccccc} 4 & 1 & 0 & 0 & 0 \\ 0 & 4 & 0 & 0 & 0 \\ 0 & 0 & 4 & 0 & 0 \\ 0 & 0 & 0 & 9 & 0 \\ 0 & 0 & 0 & 0 & 9 \end{array}\right)$$
I know that the characteristic polynomial is $(\lambda-4)^3(\lambda-9)^2$ I know that the minimal polynomial can be a least $(\lambda-4)(\lambda-9)$ and $(\lambda-4)^3(\lambda-9)^2$ at most.
The matrix is $\text{diagonal}(J_2(4),J_1(4),J_1(9),J_1(9))$
How can I continue?
We have
$(A-4I)e_1 = 0$
$(A-4I)e_2 = e_1 \ne 0 $ and $(A-4I)^2 e_2=0$.
$(A-4I)e_3 = 0$
$(A-9I)e_4 = 0$
$(A-9I)e_5 = 0$
Therefore, $(A-4I)(A-9I)\ne0$ but $(A-4I)^2(A-9I)=0$.
Thus, the minimal polynomial of $A$ is $(\lambda-4)^2(\lambda-9)$.