However, there seems to be something wrong with this problem. From XXT= 1, there is S=I-2XXT=I-2, that is, s is actually a first-order square matrix, that is, the number-1.
The topic may be S=I-2XTX. Of course, the problem-solving process is still the same.