We want to prove that $$\mathsf E(N)=\sum_{i=1}^\infty \mathsf P(N\geqslant i)$$
We are given a hint that $$\sum_{i=1}^\infty\mathsf P(N\geqslant i)= \sum_{i=1}^\infty\sum_{k=i}^\infty \mathsf P(N=k)$$
and then instructed to switch the order of the sums.
I can't figure out how this works out. Please help.
Switching the sums means moving from $i\in\{1\ldots\infty\}, k\in\{i\ldots\infty\}$ to the equivalent domain of $k\in\{1\ldots\infty\}, i\in\{1\ldots k\}$. Because both are equivalent to $1\leqslant i\leqslant k < \infty$ for integers $i,k$.
$$\begin{align} \sum_{i=1}^\infty\sum_{k=i}^\infty f(i,k) &= \sum_{k=1}^\infty \sum_{i=1}^{k} f(i,k) \end{align}$$
Now instead of $f(i,k)$ you have $\mathsf P(N=k)$, an expression only in $k$. Can you take it from here?