Hi I come across this question when reviewing my notes.

But isn't this just the definition of weak convergence? Am I failing to understand the problem?
The definition given on my notes is

A more interesting question is this one:
Where the $x^*$ is in a dense subset of the unit ball in $X^*$
Notes by Scott Morrison.
Thanks in advance.
You are right, what you are asked to show in the first exercise is just the definition of weak convergence.
The second exercise is indeed more interesting. What you are asked to show in the second exercise is wrong. There is an assumption of boundedness missing, a bounded sequence $(x_n)$ in $X$ converges weakly to $x$ if and only if $x^\ast(x_n) \to x^\ast(x)$ for all $x^\ast$ in a dense subset of the unit ball of $X^\ast$.
If you don't find a counterexample without the boundedness assumption yourself: