Royden leaves the following as an exercise:
Let $X$ be a linear subspace of $C[0,1]$ that is closed as a subset of $L^2[0,1]$. $X$ is closed, and there is a constant $M$ such that $\|f\|_\infty\le M\|f\|_2,\,\|f\|_2\le\|f\|_\infty$ for all $f\in X$.
Show that for all $y\in[0,1]$, there is a function $k_y\in L^2[0,1]$ with $f(y)=\int_0^1k_y(x)f(x)\,\mathrm{d}x$ for all $f\in X$.
This comes after a chapter on basic linear operator theory, with theorems like the open mapping and closed graph theorems covered, and some lemmas on when we can know if an operator is continuous/open, and also some theorems on the isomorphy of finite dimensional linear spaces with $\Bbb R^n$.
I have studied more measure theory than is covered thus far in Royden's book, and I have seen the proof of the Riesz representation theorem and I can tell you that since $T_y\in L^2[0,1]^*$, $T_y:f\mapsto f(y)$ is a continuous linear functional on the subset $X$ (by extreme value theorem), it must have the representation $k_y\in L^2[0,1]$ as the $L^p$-conjugate of $2$ is again $2$ - I hope I'm using this theorem right.
So there is an immediate and rather too powerful solution. Royden does not cover this theorem until much later in the book I believe, yet he expects students to find, or show the existence of, such a delta-esque function $k_y$ using basic linear operator theory.
What was the solution he had in mind? I'd be happy with any linear theoretic solution really, since knowing exactly what Royden intended is hard! I just expect one can get away with arguments weaker than the Riesz Representation theorem.