Let
$$f_n(x)=\left\{ \begin{array}{l l} 1 \quad \mbox{ if $\frac12 - \frac1n \leq x \leq \frac12 + \frac1n$,} \\ 0 \quad \mbox{otherwise} \\ \end{array} \right. $$
on the interval $[0,1]$.
How do I show that $f_n \to 0$ in the $L^2$ sense but NOT pointwise.