Assume the square matrix $A=(a_{ij})$ of size $n$ commutes with all invertible square matrices of the same size $n$.
Take this particular matrix $B = {(b_{ij})}$ where $b_{ij} = i$ when $i=j$ and $b_{ij} = 0$ if $i \ne j$.
$B$ is obviously invertible.
Use the fact that it commutes with your matrix A. So we have $AB=BA$ When we write this down in details, this easily gives us that $a_{ij} = 0$ when $i\ne j$. So all elements of $A$ which are not on the main diagonal are zeros. Now we just need to prove that all elements along the main diagonal of $A$ are equal...
I am thinking on this part myself right now. Should be some simple trick too, I just haven't figured it out yet...
EDIT:
Oh, here it is, the solution for the final part... Multiply now the matrix $A$ to the Vandermonde matrix $V$ (you can pick the alphas in $V$ pretty much as you wish, just take them all distinct). Vandermonde matrix is invertible (as we know from theory, from its determinant) if all alphas in $V$ are pairwise distinct.
OK... Now use the fact that $A$ commutes with $V$ and compare the first columns of the two result matrices $VA$ and $AV$. From comparing the two first columns, you easily get now that the elements along the main diagonal of $A$ are all equal (and this completes the proof). You just need to write down $VA$ and $AV$ (e.g. for $n=3$) and you will notice the pattern and why the desired statement follows.
https://en.wikipedia.org/wiki/Vandermonde_matrix