A little exercise on Cayley-Hamilton theorem