For no minima on the endpoint, I am thinking a using a polynomial with odd degree so that the both ends will go upward to positive and negative infinity respectively.
However, I have no idea how to have two maxima but no minima in between.
Please leave a hint, and much appreciated!
