[example: A Fair Random Walk Remembers Its Path]
Let $Y_1,Y_2,\dots$ be i.i.d. random variables with $\mathbb P(Y_i=1)=\mathbb P(Y_i=-1)=1/2$, and define $S_0=0$ and $S_n=\sum_{i=1}^n Y_i$. At time $2$,
\begin{align*}
S_2=Y_1+Y_2.
\end{align*}
The four possible pairs $(Y_1,Y_2)$ are $(1,1)$, $(1,-1)$, $(-1,1)$, and $(-1,-1)$. By independence, each has probability $(1/2)(1/2)=1/4$. Therefore $S_2$ takes the values $2,0,-2$, and the value $0$ occurs exactly for the two pairs $(1,-1)$ and $(-1,1)$, so
\begin{align*}
\mathbb P(S_2=0)=\mathbb P((Y_1,Y_2)=(1,-1))+\mathbb P((Y_1,Y_2)=(-1,1))=\frac{1}{4}+\frac{1}{4}=\frac{1}{2}.
\end{align*}
The terminal event $S_2=1$ is impossible, because $Y_1+Y_2$ is always one of $-2,0,2$; hence $\mathbb P(S_2=1)=0$. By contrast, the event that the walk has reached level $1$ by time $2$ is
\begin{align*}
\left\{\max\{S_0,S_1,S_2\}\ge1\right\}.
\end{align*}
Since $S_0=0$ and $S_1=Y_1$, if $Y_1=1$ then the maximum is already at least $1$. If $Y_1=-1$, then $S_1=-1$ and $S_2=-1+Y_2$ is either $0$ or $-2$, so the maximum among $S_0,S_1,S_2$ is $0$ and the walk has not hit $1$. Thus
\begin{align*}
\left\{\max\{S_0,S_1,S_2\}\ge1\right\}=\{Y_1=1\},
\end{align*}
and therefore
\begin{align*}
\mathbb P\left(\max\{S_0,S_1,S_2\}\ge1\right)=\mathbb P(Y_1=1)=\frac{1}{2}.
\end{align*}
For example, the path with $Y_1=-1$ and $Y_2=1$ has $S_0=0$, $S_1=-1$, and $S_2=0$, so it ends at the same terminal value as the path $(1,-1)$ but never reaches $1$. This is why the random evolution must be treated as the whole family $(S_n)_{n\ge0}$, not just through the law of one terminal value.
[/example]