I don't think there exists such a function. So my method is to assume such a function exists and show that it must be zero. I'm trying to follows the solution for this similar problem, but I can't seem to get anywhere.
What I've been doing is that by Stone-Weierstrass there exists $p_k(x)$, a sequence of polynomials that converges to uniformly to $f$, then I can write $$ \int_{-2}^3 f(x)f(x)\,dx = \int_{-2}^3 f(x)\lim_{k\rightarrow \infty} p_k(x) \, dx = \lim_{k\rightarrow \infty}\int_{-2}^3 f(x) p_k(x) \, dx $$ But of course I can't conclude this integral is $0$ from this. So I'm not sure where to go from here