I have a proof and need some feedback. It seems really obvious that the statement is true but it is always the obvious ones that are a little trickier to prove. So I would appreciate any feedback. Thank you!
Here is what I am asked to prove:
If $n$ is composite then $(n-1)! \equiv 0 \pmod n$.
Proof:
$n$ is composite $\implies n=ab$ where $a,b \in \mathbb{Z}$ and $0<a,b<n$.
Case 1: If $a=b$ then $n=a^{2}$. Now $n \mid (n-1)! \implies a \mid (n-1)!$, so $$\begin{aligned} (n-1)! &\equiv 1\times 2\times \dotsb \times a \times\dotsb\times (n-a)\times\dotsb\times (n-1) \\ &\equiv 1\times 2\times \dotsb\times a \times\dotsb\times -a\times\dotsb\times -1 \\ &\equiv 0 \pmod n \end{aligned}$$
Case 2: $0<a<b<n$.
Then, since $a \mid n$, $b \mid n$ and $n \mid (n-1)!$ we have that $a \mid (n-1)!$ and $b \mid (n-1)!$.
So this implies $(n-1)! \equiv 1\times 2\times \dotsb\times a \times\dotsb\times b\times\dotsb\times (n-1) \equiv 0 \pmod n$, Q.E.D.
Hint $\rm\ n\, =\, \color{#C00}a\:\!\color{#0A0}b\mid1\!\cdot\! 2\cdots\color{#C00} a\:\color{#0A0}{(a\!+\!1)\, (a\!+\!2) \cdots (a\!+\!b)}\cdots (\color{#90f}{ab\!-\!1})=(n\!-\!1)!\,\ $ by $\rm\,\ \color{#0a0}{a\!+\!b}\le \color{#90f}{ab\!-\!1} $
Note $\rm\,\color{#0A0}b\,$ divides $\rm\color{#0A0}{green}$ product since a sequence of $\rm\,b\,$ consecutive integers has a multiple of $\rm\,b,\,$
and $\rm\,\color{#0a0}{a\!+\!b} \le \color{#90f}{ab\!-\!1} \!\!\iff\!\! 2\le (\underbrace{a\!-\!1}_{\large \ge\,1})(\underbrace{\color{#f70}{b\!-\!1}}_{\large\color{#f70}{\ge\, 2}}), \,$ true by $\rm\,a,b\ge 2,\,$ $\rm\underbrace{not\ both\!=\!2,}_{\large n\,=\,ab\,\ne\, 4}\,$ so $\,\color{#f70}{\rm one}$ is $\,\color{#f70}{\ge 3}$
The prior inequality implies that all of the $\rm\color{#0A0}{green}$ factors do occur in $\rm\,(ab\!-\!1)!$
Note $ $ That $\rm\:\color{#0A0}b\:$ divides the above $\rm\color{#0A0}{green}$ term is not deduced from the fact that it is divisible by $\rm\,b!\,$ by integrality of the binomial coefficient $\rm\:(a\!+\!b:a),\:$ as in WimC's answer. Rather, we deduce it from the more elementary fact that a sequence of $\rm\,b\,$ consecutive integers contains a multiple of $\rm\,b,\,$ which is an immediate consequence of (Euclidean) division.