Solution (source code)

= Solution

By the <tower property of conditional expectation> and the defining <martingale> identity,
$$
\mathbb E[M_n]=\mathbb E\bigl[\mathbb E[M_n\mid\mathcal F_{n-1}]\bigr]=\mathbb E[M_{n-1}].
$$
Iteration gives
$$
\boxed{\mathbb E[M_n]=\mathbb E[M_0]\quad(0\leq n\leq N).}
$$
The integrability in the definition ensures these expectations exist.