Let the general form of the cubic be
we know that since this is the y-intercept.
so we have:
since the local max is at x = 1, it means and
since the local min is at x = 3, it means and
can you continue? (you may not need the second derivative, i just gave you extra information for your general edification)