How to solve the following problem:
Let $f_n, f \in L^2(\mathbb{R}^d)$ for all $n \geq 1$ be such that $\|f_n\|_2 \to \|f\|_2$ as $n \to \infty$. Suppose, moreover, that $$\int f_{n}g \to \int fg $$ for all $g \in L^2(\mathbb{R}^d)$. Then $f_n$ converges to $f$ in $L^2$-norm.
Since $L^2$ is a Hilbert space, you can use the parallelogram identity, as suggested in a comment. More generally, you can also use a property of any uniformly convex Banach space, which is listed as the second property here. A very nice proof appears in Brezis' book on functional analysis.