Problem
Let $A,B\in M_n(\mathbb C)$. Suppose $\text{null}A=\text{null}A^2,\text{null}B=\text{null}B^2$ and the spectrums of $A$ and $B$ are nonnegative. If $A^4=B^4$, then $A=B$.
Similar Question
I know that if I can solve the similar question above, then this problem is just a straightforward corollary. However, the answer in the link, as far as I'm concerned, is quite vague; so I am here craving for an extra explanation.