Solution
= Solution
The map $x\mapsto-x\pmod K$ is a <bijection> and an <involution>, so its <permutation matrix> satisfies
$$
\boxed{S^\dagger=S,\qquad S^2=I.}
$$
In particular $S^\dagger S=I$, which proves that $S$ is a <unitary operator>. Equivalently, it permutes the <computational basis> and therefore preserves every <inner product>.