Can you help me with this, please!

Suppose thatAandBare twonxncomplex matrices both having characteristic polynomial (z - Lambda)^n , and both having the same minimal polynomial . Suppose also that the geometric multiplicity ofLambdaas an eigenvalue of A is the same as the geometric multiplicity ofLambdaas an eigenvalue of B. Prove that A and B have the same Jordan form , or give a counterexample .

Thanks!