Fix $n ≥ 4$. Suppose there is a particle that moves randomly on the number line, but never leaves the set $\{1, 2, . . . , n\}$. The initial probability distribution of the particle is $π$ i.e., the probability that particle is in location $i$ is given by $π(i)$. In the first step, if the particle is at position $i$, it moves to one of the positions in $\{1, 2, . . . , i\}$ with uniform distribution; in the second step, if the particle is in location $j$, then it moves to one of the locations in $\{j, j + 1, . . . , n\}$ with uniform distribution. Suppose after two steps, the final distribution of the particle is uniform. What is the initial distribution $π$?
The answer given is $π(1) = 1$ and $π(i) = 0$ for $i=\{2, 3,...,n \}$. I've no idea how to derive this, please help me with a hint.