At a "max" or "min" or "inflection point" of a polynomial the first derivative must be 0. At an inflection point the second derivative is also 0. So lets see if we can create a polynomial function that has a "max" at x= -1, and "inflection point" at x= 0, and a "min" at x= 1.
We must have f'(-1)= f'(0)= f'(1)= 0, f''(-1)< 0, f''(1)> 0 and f''(0)= 0. To satisfy those six conditions we need six coefficients to determine so we need at least a
fifth degree polynomial,
f(x)=ax5+bx4+cx3+dx2+ex+f.
Then
f′(x)=5ax4+4bx3+3cx2+2dx+e and
f′′=20ax3+12bx2+6cx+3d.
We must have
f′(−1)=5a−4b+3c−2d+e=0,
f′(0)=e=0,
f′(1)=5a+4b+3c+2d+e=0, and
f′′(0)=3d=0 as well as
f′′(−1)=−20a+12b−6c+3d>0 and
f′′(1)=20a+12b+6c+3d<0. Assign whatever values you want for f(-1), f(0), and f(1) so that you have six equations to solve for a, b, c, d, e, and f.