Here are two reasons why it's not contradictory.
The shorter reason is that there are lots of topological spaces that have subsets that are both open and closed. (Indeed, the entire space and the empty set are always both open and closed. But there are lots of nontrivial examples as well, such as any subset of a discrete space.) Therefore, the fact that a subset is closed does not contradict its being open.
But the more essential reason is that a particular set can have lots of topologies placed upon it, and the sets that are open and closed in one of those topologies don't have to have anything to do with the sets that are open and closed in another topology. In this case, we are defining a new topology on $\Bbb R$, and so the open sets are, by definition, the ones listed, and the closed sets are precisely the complements of those open sets (so $\Bbb R$, $\emptyset$, and $(-\infty,-n)\cup(n,\infty)$ for every $n\in\Bbb N$). In particular, $[-n,n]$ is not a closed set in this new topology.
The language is definitely confusing, because the fact that we normally call $[-n,n]$ a "closed" interval is because it's closed in the usual topology on $\Bbb R$. (Well, the interval nomenclature probably arose earlier than the topological nomenclature, but never mind....) But that's just one way to refer to that particular set, not a guarantee of closedness in every situation. It might have been less confusing if the problem had said: "The set containing $\emptyset$, $\Bbb R$, and every interval $\{x\in\Bbb R\colon -n\le x\le n\}$ for $n$ any positive integer".