I have two square matrices, $A$ and $B$, and I know that $AB = I\_n$, how do I then show that $A$ is invertible?

I've been considering determinants, and I have started off by assuming that $A$ is not invertible, and so $det(A) = 0$, and have been trying to find a contradiction, but I'm not getting anywhere, thanks.