The instantaneous rate of change at x = 2 is 0
at x = 3 is negative
0 <= x <= 4 is 0
a function has an instantaneous rate of change of 0 at a maximum or minimum
the instantaneous rate of change at x = 3 being negative means it goes down after the maximum or minimum meaning it is a maximum
the average rate of change on the interval is 0, so the function goes up and then down
these all sound like a parabola
y = -2(x - 2)^2 + 10 is a parabola that fits the requirements