Let $A \in M_n(\mathbb{R})$ such that $A^2 = -I_n$. Show that there exists a non singular $S \in M_n(\mathbb{R})$ such that
$$S^{-1}AS = \begin{bmatrix} 0 && -I_{\frac{n}{2}} \\ I_{\frac{n}{2}} && 0 \\ \end{bmatrix}$$
So far what I have done is noted that $A^2 +I_n = 0$ and so $p(t)=t^2+1$ is its minimal polynomial. Therefore the eigenvalues of $A$ are $\{i,-i\}$. Thus the characteristic polynomial is
$$(x-i)^r(x+i)^s$$
such that $r+s=n$. Now if $r>s$ or $s>r$ the characteristic polynomial would not be real which is a contradiction. Thus $r=s$ so $2r=n$ which is to say that $n$ is even. Now by jordans real form we can find a nonsingular $X \in M_n(\mathbb{R})$ such that
$$X^{-1}AX = J_n(0)^2 + (J_2(0) - J_2(0)^T) \oplus \dots \oplus(J_2(0) - J_2(0)^T)$$
From here I have no idea how to get to the desired form, thanks in advance for any suggestions!