My answer is similar to the one given by A.Sh, but with some differences.
Let $A$ be the given matrix.
Note that $A$ has only one generalized diagonal with nonzero product, namely the diagonal $D$ consisting of all cells whose value is an odd positive integer.
It follows that $\text{det}(A) = \text{det}(B)$ where $B$ is the matrix obtained from $A$ by setting all cells not on $D$ to zero.
We proceed to find $\text{det}(B)$ . . .
First suppose $n$ is even.
Then the last row of $B$ is zero, hence $\text{det}(B) = 0$.
Next suppose $n$ is odd.
Then $B$ is a block diagonal matrix with $2\,{\times}\,2$ square blocks.
It follows that $\text{det}(B)$ is the product of the determinants of those $2\,{\times}\,2$ matrices, hence
\begin{align*}
\text{det}(B) &=(-1^2)(-(3^2)\cdots (-(n^2))\\[6pt]
&=(-1)^{(n+1)/2}(1\cdot 3\cdots n)^2\\[6pt]
\end{align*}