It is possible to prove that such a DFA would always have at least $2^n$ states (the idea of the proof is given here, but for a two-letters alphabet).
This bound can be reached: consider $A = (Q, \delta, q_0, F)$ where:
- $Q = \{0,1\}^n$: to each state corresponds a word of length $n$ over the alphabet $\{0,1\}$;
- $q_0 = 1^n$;
- $F = \{0u\mid u\in \{0,1\}^{n-1}\}$: states that begin with $0$;
- for $u\in \{0,1\}^n$, $u = u_1…u_n$, $\delta(u, 0) = u_2…u_n0$ and $\delta(u,1) = \delta(u, 2) = u_2…u_n1$.
The idea is that each state tells you what are the last $n$ letters you read (at least for words of length $\geqslant n$), with $2$'s being associated with $1$'s (we just need to know the positions of $0$'s).
Proof left to you that $L(A) = \{w\in\{0,1,2\}^*\mid w = u0v, \text{ with }|v| = n-1\}$.