Answer:
The property holds only when (n) is a prime number.
1. What the property says
Let
[
f(x)=x^{d}+a_{d-1}x^{d-1}+\dots +a_{0}\in\mathbb Z_{n}[x]
]
be a monic polynomial (its leading coefficient is (1)).
We want
[
#{,r\in\mathbb Z_{n}\mid f(r)=0};\le;d\qquad\text{for every such }f .
]
2. If (n) is a prime, the property is true
When (n=p) is prime, (\mathbb Z_{p}) is a field.
In a field a non‑zero polynomial of degree (d) has at most (d) zeros; this is a standard result proved by induction on the degree (or by the factor theorem).
Since a monic polynomial is certainly non‑zero, the required inequality holds for every (f).
3. If (n) is not prime, the property fails
There are two ways in which (n) can be composite.
3.1 (n) is divisible by a square ((p^{2}\mid n))
Write (n=p^{k}m) with (k\ge 2) and (\gcd(p,m)=1).
Consider the monic quadratic
[
f(x)=x^{2}-p^{,k-1}x\in\mathbb Z_{n}[x].
]
For any integer (t),
[
f\bigl(p^{,k-1}t\bigr)=p^{,2k-2}t^{2}-p^{,2k-2}t
=p^{,2k-2}t(t-1)\equiv 0\pmod{p^{k}} .
]
Hence every element of the form (p^{,k-1}t) (there are exactly (p) of them modulo (p^{k})) is a root of (f) modulo (p^{k}).
Since the reduction modulo the coprime factor (m) does not affect these roots, (f) has at least (p) distinct roots in (\mathbb Z_{n}) while its degree is only (2).
Because (p\ge 2), the required inequality is violated.
3.2 (n) is square‑free but has at least two distinct prime factors
Write (n=p_{1}p_{2}\cdots p_{r}) with (r\ge 2) and distinct primes (p_i).
By the Chinese Remainder Theorem
[
\mathbb Z_{n};\cong;\mathbb Z_{p_{1}}\times\cdots\times\mathbb Z_{p_{r}} .
]
Take the monic polynomial
[
f(x)=x^{2}-x\in\mathbb Z_{n}[x].
]
Over each field (\mathbb Z_{p_i}) the equation (x^{2}-x\equiv0) has exactly the two solutions (0) and (1).
Consequently a root of (f) modulo (n) is a tuple ((\varepsilon_{1},\dots ,\varepsilon_{r})) with each (\varepsilon_{i}\in{0,1}).
Thus
[
#{\text{roots of }f\text{ in }\mathbb Z_{n}}=2^{,r}\ge 4 .
]
The degree of (f) is (2), so for any (r\ge 2) we have more roots than the degree, contradicting the desired property.
Since in both ways of being composite we can produce a monic polynomial whose number of distinct roots exceeds its degree, the property cannot hold for any non‑prime (n).
4. Conclusion
- The property holds for every monic polynomial iff (\mathbb Z_{n}) is a field.
- The only finite rings (\mathbb Z_{n}) that are fields are those with (n) a prime.
[
\boxed{\text{The required integers are precisely the prime numbers }n>1.}
]