I'll take a stab at a second method too, to see if that's what your teacher had in mind.
The idea is to use this post and/or this post, because:
$$M=\begin{pmatrix}0&0&1&0\\0&1&0&0\\1&0&0&0\\0&0&0&1\end{pmatrix}\begin{pmatrix}-1&0&0&2\\0&3&0&3\\0&0&1&5\\0&0&0&1\end{pmatrix}$$
$$=\begin{pmatrix}0&0&1&0\\0&1&0&0\\1&0&0&0\\0&0&0&1\end{pmatrix}\begin{pmatrix}-1&0&0&0\\0&3&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix}\begin{pmatrix}1&0&0&-2\\0&1&0&1\\0&0&1&5\\0&0&0&1\end{pmatrix}$$
$$=\begin{pmatrix}0&0&1&0\\0&1&0&0\\1&0&0&0\\0&0&0&1\end{pmatrix}\begin{pmatrix}-1&0&0&0\\0&3&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix}\left[\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix}+\begin{pmatrix}0&0&0&-2\\0&0&0&1\\0&0&0&5\\0&0&0&0\end{pmatrix}\right]$$
You can see that the brackets have a unit plus a nilpotent $B$ ($B^2=0$). I think the link above might be able to help you invert that right half quickly.
Yes, of course here $(I+B)^{-1}=I-B$. So we know:
$$M^{-1}=\begin{pmatrix}1&0&0&2\\0&1&0&-1\\0&0&1&-5\\0&0&0&1\end{pmatrix}\begin{pmatrix}-1&0&0&0\\0&1/3&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix}\begin{pmatrix}0&0&1&0\\0&1&0&0\\1&0&0&0\\0&0&0&1\end{pmatrix}$$
which isn't so hard to compute. Multiply the left pair first, then with the final matrix on the right to get this in only a minute:
\begin{pmatrix}0&0&-1&2\\0&1/3&0&-1\\1&0&0&-5\\0&0&0&1\end{pmatrix}